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.json 中的 “type”: “module”配置 不清楚什么原理
"name":"vite-plugin-vue-setup-extend-plus", "version":"0.0.2", "version":"0.1.0", "description":"Extending the vue script setup syntactic sugar, by vite-plugin-vue-setup-extend", "main":"dist/index.js", "scripts": { Expand Down ...
npm i vite-plugin-vue-setup-extend-plus -D Usage Config plugin in vite.config.ts. In this way, the required functions can be introduced as needed import{defineConfig,Plugin}from'vite'importvuefrom'@vitejs/plugin-vue'importvueSetupExtendfrom'vite-plugin-vue-setup-extend-plus'exportdefaultdefine...