You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to upgrade from
vite-plugin-components to https://github.com/antfu/unplugin-vue-components
This will have unplugin as a dependency. I followed the migration guide but am experiencing some issues with this plugin. We use Vite but it seems like this plugin includes stuff from webpack (without being a dependency?)
3 import { Compiler, WebpackPluginInstance } from 'webpack';
node_modules/unplugin/dist/index.d.ts:4:45 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.
4 export { Compiler as WebpackCompiler } from 'webpack';
node_modules/webpack-virtual-modules/lib/index.d.ts:1:31 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.
1 import type { Compiler } from 'webpack';
~~~~~~~~~
I wanted to upgrade from
vite-plugin-components to https://github.com/antfu/unplugin-vue-components
This will have unplugin as a dependency. I followed the migration guide but am experiencing some issues with this plugin. We use Vite but it seems like this plugin includes stuff from webpack (without being a dependency?)
I did not do any setup for unplugin and followed the migration guide (https://github.com/antfu/unplugin-vue-components#migrate-from-vite-plugin-components) . We do use HeadlessUiResolver({}), instead of ElementPlusResolver like described in the migration guide.
The text was updated successfully, but these errors were encountered: