Closed chriswoodie closed 2 years ago
@skog-newglue Hey! Thanks for reporting this.
This issue seems to be resolved in the latest version of Nx.
Could you migrate to the latest version and try again?
npx nx migrate latest && npx nx migrate --run-migrations
@Coly010 Hi, running the migrations throws this error:
> NX Failed to run update-14.1.8 from @nrwl/storybook. This workspace is NOT up to date!
> NX Cannot read properties of undefined (reading 'split')
In that case, it looks like your workspace is using mixed versions of packages which can create issues.
Can you run nx repair
?
@Coly010 It says everything is up to date.
> NX No changes were necessary. This workspace is up to date!
Which packages are you referring to?
I was referring to the Nrwl Packages :)
Can you share a repo containing a reproduction so I can take a closer look?
@Coly010 Having trouble with reproducing this. Didn't get the same issue in the cloned repo when I removed all applications and libraries and then ran migrate. Even managed to run the generate application script there. I removed this from migrations.json
in the actual repo:
{
"version": "14.1.8",
"cli": "nx",
"description": "Change storybook targets for Angular projects to use @storybook/angular executors",
"factory": "./src/migrations/update-14-1-8/change-storybook-targets",
"package": "@nrwl/storybook",
"name": "update-14.1.8"
},
and managed to run the migration scripts just fine. However, I can still not generate an application.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
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
Running
npx nx generate @nrwl/angular:application foobar --no-interactive --dry-run
doesn't generate a new application, instead it throws an error saying that the foobar project doesn't exist.Expected Behavior
I expect it to generate a new application with the name "foobar". This is working in v14.3.2 but not in v14.5.5.
Steps to Reproduce
Create a workspace that use v14.5.5 and then try to generate a project either via the terminal or the Nx Console.
Failure Logs
Environment
Node : 16.13.0 OS : darwin x64 npm : 8.1.0
nx : 14.5.5 @nrwl/angular : 14.5.5 @nrwl/cypress : 14.5.5 @nrwl/detox : Not Found @nrwl/devkit : 14.5.5 @nrwl/eslint-plugin-nx : 14.5.5 @nrwl/express : Not Found @nrwl/jest : 14.5.5 @nrwl/js : 14.5.5 @nrwl/linter : 14.5.5 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : 14.3.0 @nrwl/nx-plugin : Not Found @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.5.5 @nrwl/web : 14.5.5 @nrwl/workspace : 14.5.5 typescript : 4.7.4
Local workspace plugins:
Community plugins: rxjs: 6.6.7 @nguniversal/builders: 13.0.2 @storybook/angular: 6.5.10