Closed johannesschobel closed 2 years ago
Hey @johannesschobel , it may be unrelated, but some of your @nrwl/* packages don't line up with the version of nx
you have installed. Aside from @nrwl/nx-cloud
, all packages under the nrwl scope should generally be set up with the same version.
Can you correct this and check that the issue still reproduces? An easy way to fix this would be to run nx migrate {v}
, where v
is the version of nx you have installed. Alternatively, updating to latest with nx migrate latest
would also work.
Since you said you followed the video, I'm going to assume you used npx create-nx-plugin
or npx create-nx-workspace
, you should add @latest
to either package name if you want the latest, otherwise npx may cache an older version.
I am sorry, i feel so stupid.. yeah, there was an issue with the @nrwl/*
package version. I updated to latest via nx migrate latest
, ran npm install
and nx migrate --run-migrations
and retried.
Works like a charm!
sorry for bothering you! All the best and thanks for helping out!
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
The
nx-plugin
package is currently not usable with the latest nx stack. I followed the video tutorial via the official webpage: https://nx.dev/packages/nx-plugin but it fails.Expected Behavior
It should work ;)
Steps to Reproduce
Follow the tutorial https://nx.dev/packages/nx-plugin
Failure Logs
First, the
root
property in the generatedproject.json
file is not provided. This causes issues when commiting. Second, adding a newgenerator
fails with:Environment