Open ikangjie opened 2 years ago
same question, unmet peer vite@2: found 3.1.8
when i run build in react
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import importPlugin from "vite-plugin-import"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), importPlugin({
babelImportPluginOptions:[
{
libraryName: 'antd',
libraryDirectory: 'es',
style: 'true'
}
]
})]
})
failed to load config from vite.config.js error during build: TypeError: importPlugin is not a function
unmet peer vite@2: found 3.1.7