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
When generating the following: nx g @nrwl/angular:ngrx --name=mystate --parent=apps/myapp/src/app/app.routes.ts --root=false --facade=true --verbose
in the following workspace: npx create-nx-workspace@latest --name=myorg --appName=myapp --preset=angular-monorepo --style=scss --standaloneApi=true --routing=true --nxCloud=false
it issues the following error: SyntaxError: Expected " " or "]" but "'" found. at Object.parse (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:29015) at Function.g [as parse] (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:34718) at Object.parse (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/parse.js:9:34) at query (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/query.js:11:39) at addProviderToRoute (/home/bt/test/myorg/node_modules/@nrwl/angular/src/utils/nx-devkit/route-utils.js:55:54) at addCommonImports (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:135:62) at addImportsToModule (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:157:26) at /home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/ngrx.js:15:42 at Generator.next (<anonymous>) at /home/bt/test/myorg/node_modules/tslib/tslib.js:167:75
Expected Behavior
One should be able to generate ngrx states using the nx schematics.
nx g @nrwl/angular:ngrx --name=mystate --parent=apps/myapp/src/app/app.routes.ts --root=false --facade=true
The following error is issued: SyntaxError: Expected " " or "]" but "'" found. at Object.parse (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:29015) at Function.g [as parse] (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:34718) at Object.parse (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/parse.js:9:34) at query (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/query.js:11:39) at addProviderToRoute (/home/bt/test/myorg/node_modules/@nrwl/angular/src/utils/nx-devkit/route-utils.js:55:54) at addCommonImports (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:135:62) at addImportsToModule (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:157:26) at /home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/ngrx.js:15:42 at Generator.next (<anonymous>) at /home/bt/test/myorg/node_modules/tslib/tslib.js:167:75
`SyntaxError: Expected "" or "]" but "'" found. at Object.parse (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:29015) at Function.g [as parse] (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:34718) at Object.parse (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/parse.js:9:34) at query (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/query.js:11:39) at addProviderToRoute (/home/bt/test/myorg/node_modules/@nrwl/angular/src/utils/nx-devkit/route-utils.js:55:54) at addCommonImports (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:135:62) at addImportsToModule (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:157:26) at /home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/ngrx.js:15:42 at Generator.next (<anonymous>) at /home/bt/test/myorg/node_modules/tslib/tslib.js:167:75`
Additional Information
Please see above.
The text was updated successfully, but these errors were encountered:
Hi, just wanted to add that I kind of hit a roadblock here. Is there any recommended way of generating/changing manually the files that nx g @nrwl/angular:ngrx generates/changes, just to have a workaround until a fix is issued?
Current Behavior
When generating the following:
nx g @nrwl/angular:ngrx --name=mystate --parent=apps/myapp/src/app/app.routes.ts --root=false --facade=true --verbose
in the following workspace:
npx create-nx-workspace@latest --name=myorg --appName=myapp --preset=angular-monorepo --style=scss --standaloneApi=true --routing=true --nxCloud=false
it issues the following error:
SyntaxError: Expected " " or "]" but "'" found. at Object.parse (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:29015) at Function.g [as parse] (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:34718) at Object.parse (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/parse.js:9:34) at query (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/query.js:11:39) at addProviderToRoute (/home/bt/test/myorg/node_modules/@nrwl/angular/src/utils/nx-devkit/route-utils.js:55:54) at addCommonImports (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:135:62) at addImportsToModule (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:157:26) at /home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/ngrx.js:15:42 at Generator.next (<anonymous>) at /home/bt/test/myorg/node_modules/tslib/tslib.js:167:75
Expected Behavior
One should be able to generate ngrx states using the nx schematics.
GitHub Repo
https://github.com/LowArmour/nx-ngrx-bug
Steps to Reproduce
npx create-nx-workspace@latest --name=myorg --appName=myapp --preset=angular-monorepo --style=scss --standaloneApi=true --routing=true --nxCloud=false --verbose
nx g @nrwl/angular:ngrx --name=mystate --parent=apps/myapp/src/app/app.routes.ts --root=false --facade=true
SyntaxError: Expected " " or "]" but "'" found. at Object.parse (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:29015) at Function.g [as parse] (/home/bt/test/myorg/node_modules/esquery/dist/esquery.min.js:1:34718) at Object.parse (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/parse.js:9:34) at query (/home/bt/test/myorg/node_modules/@phenomnomnominal/tsquery/dist/src/query.js:11:39) at addProviderToRoute (/home/bt/test/myorg/node_modules/@nrwl/angular/src/utils/nx-devkit/route-utils.js:55:54) at addCommonImports (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:135:62) at addImportsToModule (/home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/lib/add-imports-to-module.js:157:26) at /home/bt/test/myorg/node_modules/@nrwl/angular/src/generators/ngrx/ngrx.js:15:42 at Generator.next (<anonymous>) at /home/bt/test/myorg/node_modules/tslib/tslib.js:167:75
Nx Report
Failure Logs
Additional Information
Please see above.
The text was updated successfully, but these errors were encountered: