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

Cannot find module 'react-dev-utils/WatchMissingNodeModulesPlugin' #507

Open
limxing opened this issue Mar 15, 2024 · 2 comments
Open

Cannot find module 'react-dev-utils/WatchMissingNodeModulesPlugin' #507

limxing opened this issue Mar 15, 2024 · 2 comments

Comments

@limxing
Copy link

limxing commented Mar 15, 2024

#0 99.81 yarn run v1.22.19
#0 99.85 $ node scripts/build.js
#0 100.4 node:internal/modules/cjs/loader:1137
#0 100.4   throw err;
#0 100.4   ^
#0 100.4
#0 100.4 Error: Cannot find module 'react-dev-utils/WatchMissingNodeModulesPlugin'
#0 100.4 Require stack:
#0 100.4 - /web/config/webpack.config.js
#0 100.4 - /web/scripts/build.js
#0 100.4     at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
#0 100.4     at Module._load (node:internal/modules/cjs/loader:975:27)
#0 100.4     at Module.require (node:internal/modules/cjs/loader:1225:19)
#0 100.4     at require (node:internal/modules/helpers:177:18)
#0 100.4     at Object.<anonymous> (/web/config/webpack.config.js:19:39)
#0 100.4     at Module._compile (node:internal/modules/cjs/loader:1356:14)
#0 100.4     at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
#0 100.4     at Module.load (node:internal/modules/cjs/loader:1197:32)
#0 100.4     at Module._load (node:internal/modules/cjs/loader:1013:12)
#0 100.4     at Module.require (node:internal/modules/cjs/loader:1225:19) {
#0 100.4   code: 'MODULE_NOT_FOUND',
#0 100.4   requireStack: [ '/web/config/webpack.config.js', '/web/scripts/build.js' ]
#0 100.4 }
#0 100.4
#0 100.4 Node.js v18.19.1
#0 100.4 error Command failed with exit code 1.
#0 100.4 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
failed to solve: process "/bin/sh -c yarn config set registry https://registry.npmmirror.com -g &&     yarn config set sass_binary_site \"https://npmmirror.com/mirrors/node-sass/\" -g  &&     yarn &&     yarn build" did not complete successfully: exit code: 1
@GaryChangCN
Copy link
Collaborator

  1. 确定正确安装了依赖
  2. 切成 node 14 版本尝试

@limxing
Copy link
Author

limxing commented Mar 18, 2024

[2/4] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 18.12.0". Got "14.18.2"
error Found incompatible module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants