Skip to content
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

NX Cannot find module 'nx/src/devkit-exports' #2317

Open
smartywebdev0119 opened this issue Nov 13, 2024 · 1 comment
Open

NX Cannot find module 'nx/src/devkit-exports' #2317

smartywebdev0119 opened this issue Nov 13, 2024 · 1 comment
Labels
blocked: more info needed more info needed type: bug Something isn't working

Comments

@smartywebdev0119
Copy link

npx nx g @nx/web:app apps/widget-loader-sdk-bundle --bundler=webpack --verbose

NX Generating @nx/web:application

√ Which stylesheet format would you like to use? · scss
√ Which E2E test runner would you like to use? · none

NX Cannot find module 'nx/src/devkit-exports'

Require stack:

  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules@nx\devkit\index.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules@nx\web\src\generators\application\application.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\config\workspaces.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\config\configuration.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\command-line\generate.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\command-line\nx-commands.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\bin\init-local.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\bin\nx.js

Error: Cannot find module 'nx/src/devkit-exports'
Require stack:

  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules@nx\devkit\index.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules@nx\web\src\generators\application\application.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\config\workspaces.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\config\configuration.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\command-line\generate.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\src\command-line\nx-commands.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\bin\init-local.js
  • C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules\nx\bin\nx.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object. (C:\Users\eric.valentine\source\repos\Aveva.Apps\node_modules@nx\devkit\index.js:17:22)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)

I'm using nx 15.5.0

@smartywebdev0119 smartywebdev0119 added the type: bug Something isn't working label Nov 13, 2024
@MaxKless
Copy link
Collaborator

Can you elaborate on why this is a bug with nx console?
Does the behaviour differ between using Nx Console and using just nx through the CLI?

Can you paste your nx report please?

@MaxKless MaxKless added the blocked: more info needed more info needed label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: more info needed more info needed type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants