例如,如果错误信息指出vite-plugin-vue-setup-extend-plus不是一个函数,那么可能是配置或插件本身存在问题。 根据错误信息尝试解决引入失败的问题: 根据控制台输出的错误信息,尝试解决引入失败的问题。例如,如果错误信息指出插件不是一个函数,你可以检查插件的导入方式是否正确,或者插件本身是否存在bug。你可以查看插件的...
35 35 "vite": "^2.9.9", 36 36 "vite-plugin-mock": "^2.9.6", 37 + "vite-plugin-vue-setup-extend": "^0.4.0", 37 38 "vue-tsc": "^0.34.7" 38 39 } 39 40 } src/views/Welcome.vue +1-1 Original file line numberDiff line numberDiff line change @@ -5,7 ...
vite V3.0.0 vite.config.ts 引入插件报错(*** 不是函数) ·问题 #9414 ·Vitejs/Vite (github.com) 我的错误提示如下 ERROR failed to load config from D:\Work\TestCode\LuoCoreAdmin\vite.config.ts ERROR error when starting dev server: TypeError: vueSetupExtend is not a function 删掉package.j...
"unplugin-auto-import": "^0.11.2", "unplugin-vue-components": "^0.22.8", "unplugin-vue-define-options": "^0.12.2", "vite": "^3.1.8", "vite-plugin-html": "^3.2.0", "vite-plugin-mkcert": "^1.7.2", "vite-plugin-mock": "^2.9.6", "vite-plugin-svg-icons": "^2.0.1"...
1、vite-plugin-vue-setup-extend 解决vue3下 script setup语法糖 下 ,手动设置组件name不方便的问题 npm i vite-plugin-vue-setup-extend -D 在文件vite.config.ts中 importsetupExtendfrom'vite-plugin-vue-setup-extend';exportdefaultdefineConfig({plugins:[...setupExtend()],}); ...
Extending the vue script setup syntactic sugar. Contribute to vbenjs/vite-plugin-vue-setup-extend development by creating an account on GitHub.