Skip to content

pluginutils (via TypeScript plugin): Cannot find module 'estree' #1315

@meyfa

Description

@meyfa

I'm getting an error with the newest version of the TypeScript plugin. This did not happen before the Rollup 3 preparations.

How to reproduce:

  1. npm install --save-dev typescript rollup @rollup/plugin-typescript
  2. Define a config with the typescript plugin.
  3. Perform a TypeScript typecheck, e.g. via tsc --noEmit.

Expected Behavior

The typecheck succeeds.

Actual Behavior

TypeScript outputs the following error:

node_modules/@rollup/pluginutils/types/index.d.ts:2:26 - error TS2307: Cannot find module 'estree' or its corresponding type declarations.

2 import { BaseNode } from 'estree';
                           ~~~~~~~~

Found 1 error in node_modules/@rollup/pluginutils/types/index.d.ts:2

Additional Information

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