我使用命令行编译微信小程序,node.js版本16,dcloud包升级至最新版。使用vue3.
运行
npm run build:mp-weixin
时报错:
Error: Vue3 项目暂不支持当前小程序
(base) (base) chris@ChrisdeMacBook-Air frontend % npm ru
n build:mp-weixin
> chatgallery_v3@0.1.0 build:mp-weixin
> cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build
There are differences in the implementation mechanism of the browser kernels and custom components of each mini-program, and there may be compatibility issues with styles and layouts, please refer to: https://uniapp.dcloud.io/matter?id=mp
✔ Start to compile the current project to the mp-weixin platform...
ERROR Error: Vue3 项目暂不支持当前小程序
Error: Vue3 项目暂不支持当前小程序
at Object.getMPRuntimePath (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/uni-cli-shared/lib/platform.js:152:15)
at Object.<anonymous> (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/generate-component.js:24:80)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Module.require (node:internal/modules/cjs/loader:1100:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/index-new.js:17:27)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Module.require (node:internal/modules/cjs/loader:1100:19)
at require (node:internal/modules/cjs/helpers:119:18)
at createUniMPPlugin (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/lib/mp/index.js:26:30)
at webpackConfig (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/lib/mp/index.js:193:7)
at /Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/lib/configure-webpack.js:183:31
at /Users/chris/development/ChatGallery/frontend/node_modules/@vue/cli-service/lib/Service.js:283:21
at Array.forEach (<anonymous>)
at Service.resolveWebpackConfig (/Users/chris/development/ChatGallery/frontend/node_modules/@vue/cli-service/lib/Service.js:280:30)
at PluginAPI.resolveWebpackConfig (/Users/chris/development/ChatGallery/frontend/node_modules/@vue/cli-service/lib/PluginAPI.js:132:25)
at module.exports (/Users/chris/development/ChatGallery/frontend/node_modules/@vue/cli-service/lib/commands/build/resolveAppConfig.js:51:14)
at getWebpackConfig (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:89:88)
at getWebpackConfigs (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:122:13)
at build (/Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:161:26)
at /Users/chris/development/ChatGallery/frontend/node_modules/@dcloudio/vue-cli-plugin-uni/commands/build.js:80:11
at Service.run (/Users/chris/development/ChatGallery/frontend/node_modules/@vue/cli-service/lib/Service.js:262:12)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
0 个回复