-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng new does not resolve dependencies of specified collection #11026
Comments
+1 $ npm list --depth 0 -g $ ng new myworkspacename --collection=@nrwl/schematics |
@FrozenPandaz This looks like an issue with the node resolver we use for resolving packages. @meixuexiang this will never work, but the error message should be "cannot use an empty collection name" or similar. |
Thanks for taking a look @hansl. That's unfortunate... Is there an open issue or should we make one? I dug through and could not seem to find the resolution code so I'm not sure which dependency it is. Is there a workaround in the meantime? (One that the devkit can use to workaround the issue of the dependency I mean) |
Any update on this? |
…uesting collection This change first attempts to resolve a schematic referenced via the external schematic rule from the requesting schematic collection. This allows schematic packages that are direct dependencies of another schematic package to be used with the external schematic rule without manual package resolution code within the schematic. Closes angular#18098 Closes angular#11026
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
npm i @nrwl/schematics -g
ng new workspace --collection @nrwl/schematics
Observed behavior
Throws an error
Desired behavior
We have a dependency on
@ngrx/schematics
.ng new
should be able to resolve it fromglobalNodeModules/@nrwl/schematics/node_modules/@ngrx/schematics
Mention any other details that might be useful (optional)
Workaround
The workaround for users is to also manually install the dependency globally
The text was updated successfully, but these errors were encountered: