You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./node_modules/casbin/lib/esm/model/model.js 158:32
Module parse failed: Unexpected token (158:32)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| async buildIncrementalRoleLinks(rm, op, sec, ptype, rules) {
| if (sec === 'g') {
> await this.model.get(sec)?.get(ptype)?.buildIncrementalRoleLinks(rm, op, rules);
| }
| } // buildRoleLinks initializes the roles in RBAC.
./node_modules/casbin/lib/esm/model/model.js 158:32
Module parse failed: Unexpected token (158:32)
File was processed with these loaders:
* ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| async buildIncrementalRoleLinks(rm, op, sec, ptype, rules) {
| if (sec === 'g') {
> await this.model.get(sec)?.get(ptype)?.buildIncrementalRoleLinks(rm, op, rules);
| }
| } // buildRoleLinks initializes the roles in RBAC.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Describe the bug
Cannot compile when using optional chaining.
same issue: #8445
The current temporary solution: #8445 (comment)
Did you try recovering your dependencies?
Environment
Steps to reproduce
then add the following code to your project:
run
npm start
Reproducible demo
https://github.com/ravikumarjs-foyernet/rbac
The text was updated successfully, but these errors were encountered: