2***@qq.com
2***@qq.com
  • 发布:2023-08-11 14:06
  • 更新:2023-08-11 17:32
  • 阅读:210

脚手架创建项目运行报错

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

浏览器平台: Chrome

项目创建方式: CLI

CLI版本号: 4.5.14

操作步骤:

npm run dev:h5

预期结果:

TypeError: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.assign (<anonymous>)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:53:34
at Object.tap (D:\work\work9\cyd-menber\node_modules\webpack-chain\src\Use.js:14:20)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:53:12
at Array.forEach (<anonymous>)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:22:17
at D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:268:40
at Array.forEach (<anonymous>)
vice\lib\Service.js:268:26)
at Service.resolveWebpackConfig (D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:272:48)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cyd-merchant@0.1.0 dev:h5: cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cyd-merchant@0.1.0 dev:h5 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\86150\AppData\Roaming\npm-cache_logs\2023-08-11T06_02_21_523Z-debug.log

实际结果:

TypeError: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.assign (<anonymous>)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:53:34
at Object.tap (D:\work\work9\cyd-menber\node_modules\webpack-chain\src\Use.js:14:20)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:53:12
at Array.forEach (<anonymous>)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:22:17
at D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:268:40
at Array.forEach (<anonymous>)
vice\lib\Service.js:268:26)
at Service.resolveWebpackConfig (D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:272:48)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cyd-merchant@0.1.0 dev:h5: cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cyd-merchant@0.1.0 dev:h5 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\86150\AppData\Roaming\npm-cache_logs\2023-08-11T06_02_21_523Z-debug.log

bug描述:

ERROR TypeError: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.assign (<anonymous>)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:53:34
at Object.tap (D:\work\work9\cyd-menber\node_modules\webpack-chain\src\Use.js:14:20)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:53:12
at Array.forEach (<anonymous>)
at D:\work\work9\cyd-menber\node_modules\@dcloudio\vue-cli-plugin-uni\lib\chain-webpack.js:22:17
at D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:268:40
at Array.forEach (<anonymous>)
at Service.resolveChainableWebpackConfig (D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:268:26)
at Service.resolveWebpackConfig (D:\work\work9\cyd-menber\node_modules\@vue\cli-service\lib\Service.js:272:48)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cyd-merchant@0.1.0 dev:h5: cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cyd-merchant@0.1.0 dev:h5 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\86150\AppData\Roaming\npm-cache_logs\2023-08-11T06_02_21_523Z-debug.log
PS D:\work\work9\cyd-menber>

2023-08-11 14:06 负责人:无 分享
已邀请:
喜欢技术的前端

喜欢技术的前端 - QQ---445849201

要回复问题请先登录注册