uni-app 在m2pro芯片上点击hbuilderx里边的运行到微信开发工具会报错

uni-app 在m2pro芯片上点击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)

image


更多关于uni-app 在m2pro芯片上点击hbuilderx里边的运行到微信开发工具会报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html

3 回复

一样的问题

更多关于uni-app 在m2pro芯片上点击hbuilderx里边的运行到微信开发工具会报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html


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

一样的问题

回到顶部