nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.63k stars 2.36k forks source link

Error: Cannot find module 'nx/src/config/configuration' #10815

Closed joewIST closed 2 years ago

joewIST commented 2 years ago

I am unable to run any schematics or build commands due to incorrect exports in @nrwl/devkit

Current Behavior

Schematics and build comments all fail.

Expected Behavior

Schematics to run as usual and for me to be able to build my library.

Failure Logs

Cannot find module 'nx/src/config/configuration' Require stack:

Environment

Node : 14.17.3 OS : win32 x64 yarn : 1.22.10

nx : 14.1.9 @nrwl/angular : 14.3.6 @nrwl/cypress : 14.3.6 @nrwl/detox : Not Found @nrwl/devkit : 14.3.6 @nrwl/eslint-plugin-nx : 14.3.6 @nrwl/express : Not Found @nrwl/jest : 14.3.6 @nrwl/js : 14.3.6 @nrwl/linter : 14.3.6 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : 14.1.2 @nrwl/nx-plugin : Not Found @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.3.6 @nrwl/web : 14.3.6 @nrwl/workspace : 14.3.6 typescript : 4.7.4

Community plugins: @ngneat/spectator: 8.3.1 @ngrx/component-store: 13.2.0 @ngrx/effects: 13.2.0 @ngrx/entity: 13.2.0 @ngrx/router-store: 13.2.0 @ngrx/store: 13.2.0 apollo-angular: 2.6.0 @compodoc/compodoc: 1.1.18 @ngneat/spectator: 8.3.1 @ngrx/schematics: 13.2.0 @ngrx/store-devtools: 13.2.0 @storybook/angular: 6.5.9 nx-stylelint: 12.2.0

leosvelperez commented 2 years ago

hey @joewIST!

You have a version mismatch between Nx packages. The nx package is on v14.1.9, while the rest of the @nrwl/* packages are on v14.3.6. That's why nx/src/config/configuration is not found.

Please make sure to run yarn nx migrate latest to update it to the latest version and fix the issue.

joewIST commented 2 years ago

hi @leosvelperez i have already run that command and it did not update my nx package. Possibly a bug in the migrate script? I will upgrade it manually. Thanks

mrcreatist commented 2 years ago

This worked for me, Thanks!

github-actions[bot] commented 1 year ago

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.