plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Typescript conflict in Deno

Open javadbat opened this issue 8 months ago • 0 comments

  • Rollup Plugin Name: all
  • Rollup Plugin Version: -
  • Rollup Version:
  • Operating System (or Browser): windows
  • Node Version: 20
  • Link to reproduction (⚠️ read below): https://github.com/javadbat/design-system/blob/main/tasks/build/builder/src/web-component-builder.ts

Expected Behavior

When using all rollup official plugins in Deno, I get the following error:

This expression is not callable.
  Type 'typeof import("file:///.../$node_modules/.deno/@[email protected]/$node_modules/@rollup/plugin-replace/types/index")' has no call signatures.deno-ts(2349)

Image

Actual Behavior

by putting //@ts-ignore it works fine but TypeScript somehow couldn't resolve it as a function

Additional Information

Here is where I use rollup packages. it was working fine before I moved to deno, but currently need to be silenced with //@ts-ignore https://github.com/javadbat/design-system/blob/main/tasks/build/builder/src/web-component-builder.ts

javadbat avatar Mar 03 '25 09:03 javadbat