例如,如果错误信息指出vite-plugin-vue-setup-extend-plus不是一个函数,那么可能是配置或插件本身存在问题。 根据错误信息尝试解决引入失败的问题: 根据控制台输出的错误信息,尝试解决引入失败的问题。例如,如果错误信息指出插件不是一个函数,你可以检查插件的导入方式是否正确,或者插件本身是否存在bug。你可以查看插件的...
vite version: >=2.0.0 yarn add vite-plugin-vue-setup-extend-plus -D or 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' import vue from '...
"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 ...
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”配置 不清楚什么原理