Typescript conflict in Deno

オープン
#1,851 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
deno, rollup, typescript
領域
build-system

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
3.8k
フォーク
635
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rollup/plugins のほかの issue

rollup/plugins の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。