Skip to content
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

Files imported from webpack without being a dependency? #49

Open
pieterjandebruyne opened this issue Jan 20, 2022 · 0 comments
Open

Files imported from webpack without being a dependency? #49

pieterjandebruyne opened this issue Jan 20, 2022 · 0 comments

Comments

@pieterjandebruyne
Copy link

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant