-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite-ts 模板:dev:mp-weixin 编译时报错 ERROR: Expected ">" but found "setup" 且无法热更新 #102
Comments
太奇怪了…两天前的我都没问题的,今天就出现同样报错…… |
yarn { "resolutions": { "@dcloudio/vite-plugin-uni/@vitejs/plugin-vue": "~5.0.4" }} 锁定 @vitejs/plugin-vue 为5.0.x 可解,应该是break了什么东西
pnpm也有覆盖版本的语法,去找找文档就好 |
请问解决这个问题了吗?怎么解决,今天使用npx degit dcloudio/uni-preset-vue#vite-ts 一直报这个错误,使用的是pnpm工具,不知道怎么解决 |
@Inori-Lover 感谢!很棒的解决方法,使我的代码运行 @fangyuchuang 如果你用的 yarn,按照 @Inori-Lover 的解决办法即可 如果使用的是 npm/pnpm {
"overrides": {
"@dcloudio/vite-plugin-uni": {
"@vitejs/plugin-vue": "~5.0.4"
}
}
} 文档 👉 npm overrides |
@DengSihan 你好,在package.json 中添加了 依照前面 Inori-Lover 的方法,使用yarn是可以的,不再纠结这个问题了,多谢! |
你是不是使用的pnpm 啊,如果是的话,得用
|
@DengSihan 这个issue不应该关闭~ |
Should be fixed in v5.1.1 |
issue:
dev:mp-wieixn
编译错误dev:mp-wieixn
无法实现在微信开发者工具中热更新reproduction:
npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project
cd my-vue3-project
&&npm run install
npm run dev:mp-weixin
src/pages/index/index.vue
的任意内容ENV:node v20.12.0 win10
在修改了
src/pages/index/index.vue
中的内容后,dist/dev/mp-weixin
中的对应内容并没有更新The text was updated successfully, but these errors were encountered: