You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Might be off-topic, but here is another workaround to keep the typings:
// rollup.config.tsimport_eslintfrom'@rollup/plugin-eslint';import_typescriptfrom'@rollup/plugin-typescript';// NOTE: remove once import errors are fixed for their respective packagesconsteslint=_eslintasunknownastypeof_eslint.default;consttypescript=_typescriptasunknownastypeof_typescript.default;// ...exportdefault{// ...plugins: [eslint(),typescript()]};
Expected Behavior
Compile as usual. Use
npm run bug
in my repl to see what happens.Actual Behavior
Produces errors when compiling:
Additional Information
Key ingredients are:
"type": "module"
in package.json"moduleResolution": "NodeNext"
or"Node16"
in tsconfig.jsonThe workaround is to use a JavaScript config file, so this is really the smallest of inconveniences, but it's something to fix nonetheless.
The text was updated successfully, but these errors were encountered: