Skip to content

Package types do not work with webpack 5 #48

@kaiyoma

Description

@kaiyoma

I'm currently in the middle of upgrading to webpack 5 and this package is now giving me a type error:

node_modules/.pnpm/[email protected]_567a27a819cc7a6a0873c1471c083c1f/node_modules/html-webpack-harddisk-plugin/index.d.ts:1:10 - error TS2305: Module '"../../../../webpack/types"' has no exported member 'Plugin'.

1 import { Plugin } from 'webpack';
           ~~~~~~

The problem is here: https://github.com/jantimon/html-webpack-harddisk-plugin/blob/main/index.d.ts#L1

I believe Plugin is no longer a valid export from webpack. Maybe you need to switch to WebpackPluginInstance instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions