33子
33子
  • 发布:2021-06-08 11:29
  • 更新:2022-12-12 20:31
  • 阅读:1369

npm run dev:h5运行报错

分类:uni-app

执行npm run dev:h5 报下面错误,请问是为甚么呀~

11:20:34.473 项目 'my-project' 开始编译...
11:20:35.570 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
11:20:35.575 正在编译中...
11:20:36.467 INFO Starting development server...
11:20:37.194 ERROR Error: No matching use for foo.js
11:20:37.198 Error: No matching use for foo.js
11:20:37.199 at updateJsLoader (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@dcloudio/vue-cli-plugin-uni/lib/configure-webpack.js:58:13)
11:20:37.215 at /Users/lishanshan/Documents/selfContent/my-project/node_modules/@dcloudio/vue-cli-plugin-uni/lib/configure-webpack.js:162:5
11:20:37.215 at webpackRawConfigFns.forEach.fn (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@vue/cli-service/lib/Service.js:251:21)
11:20:37.230 at Array.forEach (<anonymous>)
11:20:37.230 at Service.resolveWebpackConfig (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@vue/cli-service/lib/Service.js:248:30)
11:20:37.246 at PluginAPI.resolveWebpackConfig (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@vue/cli-service/lib/PluginAPI.js:132:25)
11:20:37.246 at serve (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@dcloudio/vue-cli-plugin-uni/commands/serve.js:47:31)
11:20:37.263 at Service.run (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@vue/cli-service/lib/Service.js:230:12)
11:20:37.264 at Object.<anonymous> (/Users/lishanshan/Documents/selfContent/my-project/node_modules/@vue/cli-service/bin/vue-cli-service.js:36:9)
11:20:37.280 at Module._compile (module.js:652:30)
11:20:37.282 at Object.Module._extensions..js (module.js:663:10)
11:20:37.297 at Module.load (module.js:565:32)
11:20:37.297 at tryModuleLoad (module.js:505:12)
11:20:37.313 at Function.Module._load (module.js:497:3)
11:20:37.313 at Function.Module.runMain (module.js:693:10)
11:20:37.329 at startup (bootstrap_node.js:188:16)

2021-06-08 11:29 负责人:无 分享
已邀请:
b***@qq.com

b***@qq.com - https://chensuiyi.me

解决方案:https://gitee.com/yicode-team/yiuni-vue3

该问题目前已经被锁定, 无法添加新回复