-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
转换后启动项目报错[plugin:vite-plugin-importer] [BABEL] unknown: Preset /* your preset */ requires a filename to be set when babel is called directly #39
Comments
项目目录截图看下,辛苦再提供下vite.config.js的内容 |
vite.config.js 如下 删除usePluginImport这个错误消失,但是会有引入其它文件的报错 let optimizeDeps = {}; let alias = { let proxy = {} let define = { let esbuild = {} return { |
之所以会有 |
把`babel-plugin-import的配置填充到usePluginImport了,但是这个报错还是存在。
|
项目中的引用是require的方式,还是import的方式呢? |
我也是一样的问题有人解决了吗 |
我用的 ant-design-vue-pro 也是一样的报错, |
邮件已收到,感谢!
|
The text was updated successfully, but these errors were encountered: