今天运行一个很有意思的项目,报上面的错
根据报错,可以发现,报错出现在项目文件夹下的node_modules\webpack-cli\bin\config-yargs.js文件第89行。
当前webpack-cli的版本为2.1.3,当前webpack版本为4.20.2。查看webpack 的release log,发现
所以我直接将webpack-cli变成了3.1.1
重新npm install 就可以完美的运行项目啦~~~
相关文章
- 解决Cannot read property 'style' of null中样式问题
- 微信小程序报错(1) (in promise) MiniProgramError Cannot read property ‘findIndex‘ of null TypeError: Cannot
- 浏览器报错 Uncaught TypeError: Cannot read property ‘prototype‘ of undefined 的解决办法
- vue watch报错:Error in callback for watcher “xxx“: “TypeError: Cannot read properties of undefined ...
- 【vue3项目】解决 “TypeError: Cannot read properties of undefined (reading ‘xxx‘)“
- Cannot read properties of undefined (reading ‘validate‘)“
- TypeError: Cannot read property ‘_c‘ of undefined
- v-自定义权限指令与v-if互相影响导致报错Cannot read properties of null (reading ‘insertBefore‘)-原因分析:
- vue3创建项目,引入组件时报错Cannot read properties of undefined (reading ‘use‘)的解决方案
- Vue cannot read property XXX of undefined 解决方法