Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

rc-collapse fires an "unexpected import" error with react 16.6.3

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

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

評価

難易度
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

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

react-component/collapse のほかの issue

react-component/collapse の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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