Typescript conflict in Deno

Open
#1,851 0 comments 0 reactions 0 assignees View on GitHub

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

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)

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

Dominant language
JavaScript
Stars
3.8k
Forks
635
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rollup/plugins

All issues in rollup/plugins

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.