Skip to content

[@types/webpack-bundle-analyzer] Support for webpack 5 #48807

@rajzik

Description

@rajzik

[@types/webpack-bundle-analyzer] doesn't support webpack 5 types which are now generated by webpack itself.

node_modules/@types/webpack-bundle-analyzer/index.d.ts:9:10 - error TS2305: Module '"../../webpack/types"' has no exported member 'Plugin'.

9 import { Plugin, Compiler, Stats } from 'webpack';
           ~~~~~~

node_modules/@types/webpack-bundle-analyzer/index.d.ts:76:31 - error TS2702: 'Stats' only refers to a type, but is being used as a namespace here.

76         statsOptions?: null | Stats.ToJsonOptionsObject;
                                 ~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions