# Webpack 报错大全

Webpack 报错大全

webpack提示Cannot read property ‘properties’ of undefined错误

  • 提示详情
K:\qianduanxuexi\webpack-demo\node_modules\webpack-cli\bin\config-yargs.js:89
                                describe: optionsSchema.definitions.output.properties.path.description,
                                                                           ^

TypeError: Cannot read property 'properties' of undefined
    at module.exports (K:\qianduanxuexi\webpack-demo\node_modules\webpack-cli\bin\config-yargs.js:89:48)
    at K:\qianduanxuexi\webpack-demo\node_modules\webpack-cli\bin\webpack.js:60:27
    at Object.<anonymous> (K:\qianduanxuexi\webpack-demo\node_modules\webpack-cli\bin\webpack.js:515:3)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Module.require (internal/modules/cjs/loader.js:830:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (K:\qianduanxuexi\webpack-demo\node_modules\webpack\bin\webpack.js:156:2)
PS K:\qianduanxuexi\webpack-demo> 
  • 问题出现原因:webpack-cli版本的问题
  • 解决办法,升级webpack
npm i [email protected] -D

你可能感兴趣的:(报错大全,webpack)