Typescript conflict in Deno
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- deno, rollup, typescript
- Domain
- build-system
Research direction
Start with tasks/build/builder/src/web-component-builder.ts and inspect how the Rollup official plugins are imported and called in Deno. Compare the TypeScript types exposed by @rollup/plugin-replace with Deno's module resolution. Done means the linked builder type-checks and calls the plugins without //@ts-ignore.
Written by the indexing model from the issue text.
Description
- 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/@rollup+plugin-replace@6.0.2/$node_modules/@rollup/plugin-replace/types/index")' has no call signatures.deno-ts(2349)
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
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 635
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rollup/plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Support js-yaml v5 Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·