Skip to content

[webpack5-module-minifier-plugin] @types/estree is not properly declared as a dependency #3844

@TheLarkInn

Description

@TheLarkInn

Summary

When you attempt to use this plugin, it fails with TypeScript errors:

[typescript] Error: common/temp/node_modules/.pnpm/@[email protected]_ryeedturos24uuwfujlvq35jyu/node_modules/@rushstack/webpack5-module-minifier-plugin/dist/webpack5-module-minifier-plugin.d.ts:3:30 - (TS2307) Cannot find module 'estree' or its corresponding type declarations.

This is because @types/estree is being used in the @public interfaces for the plugin, however not declared as a peerDependency/dependency.

Repro steps

Use plugin, get TypeScript errors.

Expected result:
No TypeScript errors, plugin works.
Actual result:
TypeScript errors, can't compile with TypeScript.

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