Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nx workspace with Angular 14 and Ngrx 14 - Error #126

Open
ivayloc opened this issue Mar 18, 2023 · 0 comments
Open

Nx workspace with Angular 14 and Ngrx 14 - Error #126

ivayloc opened this issue Mar 18, 2023 · 0 comments

Comments

@ivayloc
Copy link

ivayloc commented Mar 18, 2023

I am getting this error when I run ngrx-vis -p ./apps/client/tsconfig.app.json

C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112935
                ts.Debug.assert(!!(moduleSymbol.flags & 1536 /* Module */));
                                                ^

TypeError: Cannot read properties of undefined (reading 'flags')
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112935:49)
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112941:29)
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112941:29)
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112941:29)
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112941:29)
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112941:29)
    at addIndirectUsers (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112941:29)
    at handleNamespaceImport (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112914:25)
    at handleDirectImports (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112879:37)
    at getImportersForExport (C:\Projects\bnpl-front-end\node_modules\@ts-morph\common\node_modules\typescript\lib\typescript.js:112828:13)

Node.js v18.10.0

The application which I am trying to analyze is part of a Nx workspace, this is my package.json:

  "devDependencies": {
    "@angular-devkit/build-angular": "14.2.7",
    "@angular-eslint/eslint-plugin": "14.0.4",
    "@angular-eslint/eslint-plugin-template": "14.0.4",
    "@angular-eslint/template-parser": "14.0.4",
    "@angular/cli": "~14.2.0",
    "@angular/compiler-cli": "14.2.8",
    "@angular/language-service": "14.2.8",
    "@ngrx/eslint-plugin": "14.1.0",
    "@ngrx/schematics": "14.0.0",
    "@ngrx/store-devtools": "14.0.0",
    "@nrwl/angular": "15.0.3",
    "@nrwl/cli": "15.0.3",
    "@nrwl/cypress": "15.0.3",
    "@nrwl/eslint-plugin-nx": "15.0.3",
    "@nrwl/jest": "15.0.3",
    "@nrwl/linter": "15.0.3",
    "@nrwl/workspace": "15.0.3",
    "@types/jest": "28.1.8",
    "@types/lodash": "^4.14.186",
    "@types/node": "16.11.7",
    "@types/uuid": "^9.0.0",
    "@typescript-eslint/eslint-plugin": "5.36.1",
    "@typescript-eslint/parser": "5.36.1",
    "cypress": "^10.7.0",
    "eslint": "8.15.0",
    "eslint-config-prettier": "8.1.0",
    "eslint-plugin-cypress": "2.10.3",
    "eslint-plugin-rxjs": "5.0.2",
    "eslint-plugin-rxjs-angular": "2.0.0",
    "husky": "8.0.1",
    "jasmine-marbles": "0.9.1",
    "jest": "28.1.3",
    "jest-environment-jsdom": "28.1.1",
    "jest-preset-angular": "12.2.2",
    "ng-packagr": "14.2.2",
    "ngrx-vis": "^0.1.24",
    "nx": "15.0.3",
    "postcss": "8.4.5",
    "postcss-import": "14.1.0",
    "postcss-preset-env": "7.5.0",
    "postcss-url": "10.1.3",
    "prettier": "2.6.2",
    "prettier-plugin-organize-imports": "3.0.3",
    "pretty-quick": "3.1.3",
    "ts-jest": "28.0.8",
    "ts-node": "10.9.1",
    "typescript": "4.8.4"
  },
  "dependencies": {
    "@angular/animations": "14.2.8",
    "@angular/cdk": "14.2.6",
    "@angular/common": "14.2.8",
    "@angular/compiler": "14.2.8",
    "@angular/core": "14.2.8",
    "@angular/forms": "14.2.8",
    "@angular/material": "14.2.6",
    "@angular/material-date-fns-adapter": "14.2.6",
    "@angular/platform-browser": "14.2.8",
    "@angular/platform-browser-dynamic": "14.2.8",
    "@angular/router": "14.2.8",
    "@ngneat/transloco": "4.1.0",
    "@ngrx/component-store": "14.0.0",
    "@ngrx/effects": "14.0.0",
    "@ngrx/entity": "14.0.0",
    "@ngrx/router-store": "14.0.0",
    "@ngrx/store": "14.0.0",
    "@nx-tools/container-metadata": "4.0.1",
    "@nx-tools/nx-container": "4.0.1",
    "angular-google-tag-manager": "^1.6.1",
    "bootstrap": "5.1.3",
    "chart.js": "3.9.1",
    "date-fns": "^2.29.3",
    "deepmerge": "4.2.2",
    "filestack-js": "3.25.0",
    "ibantools": "4.1.6",
    "keen-slider": "6.8.5",
    "lodash": "4.17.21",
    "ngrx-store-localstorage": "14.0.0",
    "ngx-device-detector": "4.0.1",
    "ngx-iban": "14.0.0",
    "ngx-mask": "14.2.3",
    "ngx-pagination": "6.0.2",
    "primeicons": "6.0.1",
    "primeng": "14.1.2",
    "rxjs": "~7.5.0",
    "stripe": "^11.11.0",
    "stylelint": "14.9.1",
    "stylelint-config-twbs-bootstrap": "4.0.0",
    "tslib": "2.3.0",
    "uuid": "^9.0.0",
    "zone.js": "0.11.4"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant