Closed mayamoon closed 1 day ago
我用18.12.1 以及 20.12.0 版本都无法调试代码报错 [webpack-cli] Failed to load 'D:\node_project\pdfjs-annotation-extension\configuration[webpack.dev](http://webpack.dev/).config.js' config [webpack-cli] Error: Cannot find module 'ajv/dist/compile/codegen' Require stack:
通过强制设置ajv版本可以解决 "ajv": "^7.0.0", "ajv-keywords": "^5.0.0"
解决了就好~
我用18.12.1 以及 20.12.0 版本都无法调试代码报错 [webpack-cli] Failed to load 'D:\node_project\pdfjs-annotation-extension\configuration[webpack.dev](http://webpack.dev/).config.js' config [webpack-cli] Error: Cannot find module 'ajv/dist/compile/codegen' Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15) at Module._load (node:internal/modules/cjs/loader:1051:27) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object.