mumu_v
mumu_v
  • 发布:2023-01-05 00:01
  • 更新:2023-01-06 16:54
  • 阅读:521

uniapp vite vue3 ts 版本hbuilderX启动报错

分类:uni-app

23:57:41.190 项目 'uni-preset-vue-vite-ts' 开始编译...
23:57:42.918 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
23:57:42.918 正在编译中...
23:57:43.081 X [ERROR] Cannot start service: Host version "0.16.13" does not match binary version "0.15.18"
23:57:43.081 1 error
23:57:43.085 failed to load config from X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\vite.config.ts
23:57:43.092 error when starting dev server:
23:57:43.092 Error: The service was stopped
23:57:43.094 at X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\node_modules\vite\node_modules\esbuild\lib\main.js:1141:25
23:57:43.097 at responseCallbacks.<computed> (X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\node_modules\vite\node_modules\esbuild\lib\main.js:697:9)
23:57:43.100 at Socket.afterClose (X:\桌面\新建文件夹 (2)\uni-preset-vue-vite-ts\node_modules\vite\node_modules\esbuild\lib\main.js:687:28)
23:57:43.101 at Socket.emit (node:events:525:35)
23:57:43.103 at endReadableNT (node:internal/streams/readable:1359:12)
23:57:43.103 at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

2023-01-05 00:01 负责人:无 分享
已邀请:
mumu_v

mumu_v (作者) - 一个啥也不会只会摸鱼前端

在尝试重装node包之后依旧存在该问题

DCloud_UNI_WZF

DCloud_UNI_WZF

npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project

创建项目,pnpm 安装依赖,HBuilderX 3.6.15 运行未复现该问题
如确认框架问题,请提供详细的复现步骤及测试工程

  • mumu_v (作者)

    您好,我在执行 npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project 时,发现从本地无法连接到npm仓库,于是我在gitee下载官网示例项目,之后出现的这个问题

    2023-01-07 04:26

  • DCloud_UNI_WZF

    回复 1***@wo.cn: mac m1 pro node v16.13.0,工程下载后yarn安装依赖,测试运行正常

    2023-01-07 15:21

要回复问题请先登录注册