rc-collapse fires an "unexpected import" error with react 16.6.3
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
まず examples と Collapse および Panel のエントリーポイントから始め、次に React 16.6.3 と Create React App stack を使って build を再現します。undefined element を生成する Collapse の import または export を追跡し、Panel が引き続き動作する状態で、example がエラーなしに render されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Following along with the examples, using Collapse triggers this error in my build:
Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `ComponentName`.
Replacing Collapse with nothing or a string clears up the error. Panel export is fine.
React 16.6.3
Create-React-App stack
Chrome browser
- 主要言語
- TypeScript
- スター
- 332
- フォーク
- 140
- 平均マージ
- 22時間 19分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react-component/collapse のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
react-component/collapse#203 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
react-component/collapse#345 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
react-component/collapse#304 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
react-component/collapse#234 ·
-
Is rc-motion slower? オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
react-component/collapse#182 ·
react-component/collapse の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
bcgov/bc-wallet-mobile#4761 · コメント 1 件 ·
-
external-issue to-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100