Skip to content

Files imported from webpack without being a dependency? #49

Description

@pieterjandebruyne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions