hx 新建项目-选择模板-uni-starter, 运行到浏览器
- 发布:2022-02-17 18:08
- 更新:2022-09-21 10:20
- 阅读:983
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 3.3.11
操作步骤:
预期结果:
浏览器正常打开项目
浏览器正常打开项目
实际结果:
编译报错
编译报错
bug描述:
不论是同步到手机,还是运行到浏览器、微信小程序都会报错
18:01:05.758 internal/modules/cjs/loader.js:818
18:01:05.759 throw err;
18:01:05.763 ^
18:01:05.764 Error: Cannot find module '@vue/cli-shared-utils'
18:01:05.771 Require stack:
18:01:05.772 - D:\Program Files\HBuilderX\plugins\uniapp-cli\bin\uniapp-cli.js
18:01:05.783 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
18:01:05.784 at Function.Module._load (internal/modules/cjs/loader.js:667:27)
18:01:05.787 at Module.require (internal/modules/cjs/loader.js:887:19)
18:01:05.788 at require (internal/modules/cjs/helpers.js:74:18)
18:01:05.791 at Object.<anonymous> (D:\Program Files\HBuilderX\plugins\uniapp-cli\bin\uniapp-cli.js:15:5)
18:01:05.792 at Module._compile (internal/modules/cjs/loader.js:999:30)
18:01:05.796 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
18:01:05.796 at Module.load (internal/modules/cjs/loader.js:863:32)
18:01:05.800 at Function.Module._load (internal/modules/cjs/loader.js:708:14)
18:01:05.801 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
18:01:05.804 code: 'MODULE_NOT_FOUND',
18:01:05.805 requireStack: [
18:01:05.809 'D:\Program Files\HBuilderX\plugins\uniapp-cli\bin\uniapp-cli.js'
18:01:05.809 ]
18:01:05.812 }