We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When migrating to v14 the migration script to create a development configuration can fail with some configurations
The migration script should work in most cases when people migrate NX
Given a project.json like this one:
project.json
{ root: 'apps/example', projectType: 'application', targets: { build: { executor: '@nrwl/web:webpack', defaultConfiguration: 'production', configurations: { production: { sourceMap: false } }, }, serve: { executor: '@nrwl/web:dev-server', }, }, }
The migration script called add-default-development-configurations fails to execute because the serve target does not have a configurations key.
add-default-development-configurations
configurations
TypeError: Cannot read properties of undefined (reading 'development')
Node : 16.13.1 OS : darwin arm64 yarn : 1.22.17 nx : 14.1.1 @nrwl/angular : Not Found @nrwl/cypress : 14.1.1 @nrwl/detox : Not Found @nrwl/devkit : 14.1.1 @nrwl/eslint-plugin-nx : 14.1.1 @nrwl/express : Not Found @nrwl/jest : 14.1.1 @nrwl/js : 14.1.1 @nrwl/linter : 14.1.1 @nrwl/nest : Not Found @nrwl/next : 14.1.1 @nrwl/node : Not Found @nrwl/nx-cloud : 14.0.3 @nrwl/nx-plugin : Not Found @nrwl/react : 14.1.1 @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.1.1 @nrwl/web : 14.1.1 @nrwl/workspace : 14.1.1 typescript : 4.6.2 rxjs : 6.6.7 --------------------------------------- Community plugins: @ngrx/component-store: 13.0.2 @ngrx/effects: 13.0.2 @ngrx/entity: 13.0.2 @ngrx/router-store: 13.0.2 @ngrx/schematics: 13.0.2 @ngrx/store: 13.0.2 @ngrx/store-devtools: 13.0.2 @storybook/angular: 6.4.19
I'm opening a PR to fix this :)
The text was updated successfully, but these errors were encountered:
npm i webpack --save-dev, fixed the issue for me
npm i webpack --save-dev
Sorry, something went wrong.
fix(react): handle creation of development configuration when missing…
7cd0528
… configurations key ISSUES CLOSED: nrwl#10259
fix(nextjs): handle creation of development configuration when missin…
c8c63b4
…g configurations key ISSUES CLOSED: nrwl#10259
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.
Successfully merging a pull request may close this issue.
Current Behavior
When migrating to v14 the migration script to create a development configuration can fail with some configurations
Expected Behavior
The migration script should work in most cases when people migrate NX
Steps to Reproduce
Given a
project.json
like this one:The migration script called
add-default-development-configurations
fails to execute because the serve target does not have aconfigurations
key.Failure Logs
Environment
NX report
Fix
I'm opening a PR to fix this :)
The text was updated successfully, but these errors were encountered: