@rollup/pluginutils3.0.51.29.113.7.0@rollup/pluginutils in a TypeScript projectSee minimal repro: https://github.com/MaxMilton/repro-rollup-plugin-utils-types
Project builds without type errors.
Type error is thrown due to missing type. estree-walker does not actually have any Node type exported.
❯ yarn run build
yarn run v1.21.1
$ tsc index.ts
node_modules/@rollup/pluginutils/types/index.d.ts:1:10 - error TS2305: Module '"../../../estree-walker/types"' has no exported member 'Node'.
1 import { Node } from 'estree-walker';
~~~~
Found 1 error.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Changing pluginutils/types/index.d.ts from...
import { Node } from 'estree-walker';
... to...
import { Node } from 'estree';
... resolves the issue.
We'd be happy to review a PR that resolves this.
Fixed by 2ae08ebacaf9981252664d47e073dbac2a0447e7. Can you please publish 7.0.1?
@atomicpages thanks for referencing the commit, but please don't ask for package publishes. It adds to the noise and isn't necessary. All plugin packages are published as we have time.
@shellscape it's definitely _not_ noise. It's blocking if you use tsc and you depend on this package -- the build fails because of a bad type check.
Thanks for the quick feedback guys and thanks @NotWoods for the fix and improvements! :trophy: