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

build error #1

Open
DavidAwing opened this issue Apr 10, 2022 · 1 comment
Open

build error #1

DavidAwing opened this issue Apr 10, 2022 · 1 comment

Comments

@DavidAwing
Copy link

[webpack-cli] Failed to load 'D:\temp\3DEARTH\3d-earth-main2\webpack.config.js' config
[webpack-cli] Error: Cannot find module 'ajv/dist/compile/codegen'
Require stack:

  • D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\definitions\typeof.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\keywords\typeof.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\keywords\index.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\index.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\schema-utils\dist\validate.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\schema-utils\dist\index.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\mini-css-extract-plugin\dist\index.js
  • D:\temp\3DEARTH\3d-earth-main2\webpack.config.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack-cli\lib\webpack-cli.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack-cli\lib\bootstrap.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack-cli\bin\cli.js
  • D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack\bin\webpack.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\definitions\typeof.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\definitions\typeof.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\keywords\typeof.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\keywords\index.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\ajv-keywords\dist\index.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\schema-utils\dist\validate.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\schema-utils\dist\index.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\mini-css-extract-plugin\dist\index.js',
    'D:\temp\3DEARTH\3d-earth-main2\webpack.config.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack-cli\lib\webpack-cli.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack-cli\lib\bootstrap.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack-cli\bin\cli.js',
    'D:\temp\3DEARTH\3d-earth-main2\node_modules\webpack\bin\webpack.js'
    ]
    }
    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! [email protected] build: webpack --mode=production --node-env=production
    npm ERR! Exit status 2
    npm ERR!
    npm ERR! Failed at the [email protected] build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wing\AppData\Roaming\npm-cache_logs\2022-04-10T09_20_15_573Z-debug.log

@DavidAwing
Copy link
Author

Compiled successfully after adding dependencies to package.json : devDependencies=> "ajv": "^7.0.3"

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

1 participant