-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
This is my first time trying to work with NX
& xplat
, but I couldn't have a successful installation, unfortunately. I'm mainly using pnpm
as my default package manager, but the result was the same when I tried it with npm
and yarn
.
Here are the global packages that are currently installed with all the package managers:
@angular/[email protected]
@nestjs/[email protected]
@nrwl/[email protected]
[email protected]
[email protected]
And here is what I've done in order to set my project up:
$ pnpx create-nx-workspace@latest --cli=nx --preset=empty --packageManager=pnpm
$ pnpm add --save-dev @nstudio/xplat
$ nx generate app
> NX Running global Nx CLI with PNPM may have issues.
Prefer to use "pnpm" (https://pnpm.io/cli/exec) to execute commands in this workspace.
TIP create a shortcut such as: alias pnx="pnpm nx --"
✔ Which generator would you like to use? · @nstudio/xplat:application
> NX Generating @nstudio/xplat:application
✔ What name would you like for this app? · web
✔ What type of app would like to create? · web
✔ In which directory should the app be generated? (Just press Enter for the default: directly in 'apps') ·
✔ Would you like to configure routing for this app? (Y/n) · true
✔ Which frontend framework should it use? · angular
✔ Use xplat supporting architecture? (Y/n) · true
✔ Packages installed successfully.
TypeError: Cannot read properties of undefined (reading 'extends')
at globForProjectFiles (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/nx/src/config/workspaces.js:515:16)
at readWorkspaceJsonFile (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/nx/src/adapter/ngcli-adapter.js:151:85)
at SwitchMapSubscriber.project (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/nx/src/adapter/ngcli-adapter.js:179:105)
at SwitchMapSubscriber._next (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/rxjs/internal/operators/switchMap.js:47:27)
at Subscriber.next (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/rxjs/internal/Subscriber.js:66:18)
at MapSubscriber._next (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/rxjs/internal/operators/map.js:55:26)
at Subscriber.next (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/rxjs/internal/Subscriber.js:66:18)
at MapSubscriber._next (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/rxjs/internal/operators/map.js:55:26)
at Subscriber.next (/home/user/test-pnpm/node_modules/.pnpm/[email protected]/node_modules/rxjs/internal/Subscriber.js:66:18)
at Observable._subscribe (/home/user/test-pnpm/node_modules/.pnpm/@[email protected][email protected]/node_modules/@angular-devkit/core/node/host.js:154:17)
> NX Cannot read properties of undefined (reading 'extends')
Pass --verbose to see the stacktrace.
I have to add that using pnpm nx
doesn't make any difference. It only makes sense if I don't have nx
globally and I'd need to run it from the project dependencies, yet even in that case, the installation fails with the same result.
Here is the result of nx report
for your reference:
> NX Report complete - copy this into the issue template
Node : 18.12.1
OS : linux x64
pnpm : 7.15.0
nx : 15.0.13
@nrwl/angular : 15.0.13
@nrwl/cypress : 15.0.13
@nrwl/detox : Not Found
@nrwl/devkit : 15.0.13
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : Not Found
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.0.13
@nrwl/js : 15.0.13
@nrwl/linter : 15.0.13
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/rollup : 15.0.13
@nrwl/schematics : Not Found
@nrwl/storybook : 15.0.13
@nrwl/web : 15.0.13
@nrwl/webpack : 15.0.13
@nrwl/workspace : 15.0.13
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
@nstudio/xplat: 15.0.2
@nstudio/angular: 15.0.2
@nstudio/web-angular: 15.0.2
@nstudio/web: 15.0.2
Metadata
Metadata
Assignees
Labels
No labels