1***@qq.com
1***@qq.com
  • 发布:2024-05-19 21:56
  • 更新:2024-07-10 16:26
  • 阅读:224

【报Bug】在m2pro芯片上点击hbuilderx里边的运行到微信开发工具会报错

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 14.3.1 (23D60)

HBuilderX类型: 正式

HBuilderX版本号: 4.15

第三方开发者工具版本号: 1.06.240.4301 darwin-arm64

基础库版本号: 3.4.3

项目创建方式: HBuilderX

操作步骤:

就是一个cli创建的vue3 vite环境的项目,如果是通过命令行来运行,yarn dev:mp-weixin都是可以运行的,但是如果是点击hbuilderX运行到微信开发工具就会报我所贴出来的错误

预期结果:

正常运行,不要报这个错误,并顺利打开微信开发工具进行预览调试

实际结果:

[广告] 20:13:12.348 uni-cdn,帮你节省至少30%的 CDN 费用!详情
20:13:12.396 项目 'uni-paper' 开始编译...
20:13:13.419 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。若要正式发布,请点击发行菜单或使用 cli 发布命令进行发布
20:13:13.427 正在编译中...
20:13:13.504 error during build:
20:13:13.508 Error: Cannot find module @rollup/rollup-darwin-x64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i again after removing both package-lock.json and node_modules directory.
20:13:13.509 at requireWithFriendlyError (/Users/xxxxxx/Desktop/uni-paper/node_modules/rollup/dist/native.js:59:9)
20:13:13.518 at Object.<anonymous> (/Users/xxxxxx/Desktop/uni-paper/node_modules/rollup/dist/native.js:68:76)
20:13:13.519 at Module._compile (node:internal/modules/cjs/loader:1364:14)
20:13:13.524 at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
20:13:13.545 at Module.load (node:internal/modules/cjs/loader:1203:32)
20:13:13.546 at Module._load (node:internal/modules/cjs/loader:1019:12)
20:13:13.551 at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:203:29)
20:13:13.552 at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
20:13:13.559 at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
20:13:13.559 at async importModuleDynamicallyWrapper (node:internal/vm/module:432:15)

bug描述:

就是一个cli创建的vue3 vite环境的项目,如果是通过命令行来运行,yarn dev:mp-weixin都是可以运行的,但是如果是点击hbuilderX运行到微信开发工具就会报我所贴出来的错误

[广告] 20:13:12.348 uni-cdn,帮你节省至少30%的 CDN 费用!详情
20:13:12.396 项目 'uni-paper' 开始编译...
20:13:13.419 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。若要正式发布,请点击发行菜单或使用 cli 发布命令进行发布
20:13:13.427 正在编译中...
20:13:13.504 error during build:
20:13:13.508 Error: Cannot find module @rollup/rollup-darwin-x64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i again after removing both package-lock.json and node_modules directory.
20:13:13.509 at requireWithFriendlyError (/Users/xxxxxx/Desktop/uni-paper/node_modules/rollup/dist/native.js:59:9)
20:13:13.518 at Object.<anonymous> (/Users/xxxxxx/Desktop/uni-paper/node_modules/rollup/dist/native.js:68:76)
20:13:13.519 at Module._compile (node:internal/modules/cjs/loader:1364:14)
20:13:13.524 at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
20:13:13.545 at Module.load (node:internal/modules/cjs/loader:1203:32)
20:13:13.546 at Module._load (node:internal/modules/cjs/loader:1019:12)
20:13:13.551 at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:203:29)
20:13:13.552 at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
20:13:13.559 at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
20:13:13.559 at async importModuleDynamicallyWrapper (node:internal/vm/module:432:15)

2024-05-19 21:56 负责人:无 分享
已邀请:
EsRell_

EsRell_

一样的问题

2***@qq.com

2***@qq.com

一样的问题,没有解决办法

8***@qq.com

8***@qq.com

一样的问题

要回复问题请先登录注册