import {TabPane} from 'rc-tabs' throws an error in typescript
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
allowSyntheticDefaultImports が無効な状態で import Tabs, { TabPane } from 'rc-tabs' による TypeScript エラーを再現し、その後パッケージの exports と型宣言を調査します。完了条件は、tsconfig の回避策を必要とせずに named import が型チェックを通過し、既存の開発ワークフローで TS2614 が報告されなくなることです。
索引モデルが issue の本文から書いたものです。
説明
When I import the modules like default
import Tabs, { TabPane } from 'rc-tabs';
The compiler throws an error which says the TabPane module is not available.
TS2614: Module '"rc-tabs"' has no exported member 'TabPane'
It works anyway if I ignore the message, but it keeps throwing this error message every time I make changes in dev environment.
The error happens when I'm using typescript and it goes away when I set this tsconfig parameter to true:
"allowSyntheticDefaultImports": true
- 主要言語
- TypeScript
- スター
- 572
- フォーク
- 241
- 平均マージ
- 4日 18時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react-component/tabs のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
react-component/tabs#865 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
react-component/tabs#809 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
react-component/tabs#1013 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
react-component/tabs#777 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
react-component/tabs#726 ·
react-component/tabs の issue をすべて見る
似ている issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100