yulimchen / vue3-h5-template

🌱 A ready-to-use mobile project base template built with the Vue3, Vant, and Vite. | 基于 Vue3、Vite5、TypeScript/JavaScript、Tailwindcss、Vant4,开箱即用的移动端项目基础模板
https://yulimchen.github.io/vue3-h5-template/
MIT License
1.06k stars 255 forks source link

引入Ref 怎么会报错 #49

Closed chenchongkang closed 9 months ago

chenchongkang commented 9 months ago

使用 import { reactive, ref, Ref } from "vue"; 报错:Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/vue.js?v=f6214fab' does not provide an export named 'Ref' (at index.vue:2:25)

yulimchen commented 9 months ago
-- import { reactive, ref, Ref } from "vue";
++ import { reactive, ref, type Ref } from "vue";
chenchongkang commented 9 months ago

感谢 @yulimchen