- Rollup Plugin Name: @rollup/pluginutils
- Rollup Plugin Version: 4.2.0
- Rollup Version: *
- Operating System (or Browser): Brave
- Node Version: 17.4.0
- Link to reproduction (⚠️ read below):
Expected Behavior
All imported modules must be listed in package.json
Actual Behavior
Because of missing estree in package.json, the pnpm manager fails on resolution + typescript is unable to build.
ts-log:
error TS2307: Cannot find module 'estree' or its corresponding type declarations.
2 import { BaseNode } from 'estree';
~~~~~~~~
Found 1 error in node_modules/.pnpm/@rollup+pluginutils@4.2.0/node_modules/@rollup/pluginutils/types/index.d.ts:2
code:
https://github.com/rollup/plugins/blob/master/packages/pluginutils/src/attachScopes.ts#L2
Expected Behavior
All imported modules must be listed in package.json
Actual Behavior
Because of missing
estreein package.json, the pnpm manager fails on resolution + typescript is unable to build.ts-log:
code:
https://github.com/rollup/plugins/blob/master/packages/pluginutils/src/attachScopes.ts#L2