-
-
Notifications
You must be signed in to change notification settings - Fork 607
Closed
Labels
Description
- Rollup Plugin Name: @rollup/plugin-typescript
- Rollup Plugin Version: 11.1.6
- Rollup Version: 4.9.4
- Operating System (or Browser): macOS
- Node Version: 21.5.0
- Link to reproduction: https://replit.com/@jdharrisnz/rollup-plugin-repro-typescript-import
Expected Behavior
Compile as usual. Use npm run bug
in my repl to see what happens.
Actual Behavior
Produces errors when compiling:
npx rollup --config rollup.config.ts --configPlugin typescript
loaded rollup.config.ts with warnings
(!) Plugin typescript: @rollup/plugin-typescript TS2349: This expression is not callable.
Type 'typeof import("/home/runner/rollup-plugin-repro-typescript-import/node_modules/@rollup/plugin-typescript/types/index")' has no call signatures.
Additional Information
Key ingredients are:
"type": "module"
in package.json"moduleResolution": "NodeNext"
or"Node16"
in tsconfig.json- A rollup config file written in ESM format and TypeScript
The workaround is to use a JavaScript config file, so this is really the smallest of inconveniences, but it's something to fix nonetheless.
xt0rted, AverageHelper, bskinner-pfizer, r34son, 07akioni and 12 more