Same code works in playground but doesn't in tutorial
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, typescript
調査の方向性
Open the linked ErrorBoundary tutorial and compare its example with the working playground code. Reproduce the failure in the tutorial, then update the tutorial example so the fallback renders as shown and confirm the linked tutorial works.
索引モデルが issue の本文から書いたものです。
説明
I was going through the tutorial of ErrorBoundary: https://www.solidjs.com/tutorial/flow_error_boundary but couldn't get ErrorBoundary to work. However the same code works in playground:
import { render } from "solid-js/web";
import { ErrorBoundary } from "solid-js";
const Broken = (props) => {
throw new Error("Oh No");
return <>Never Getting Here</>;
};
function App() {
return (
<>
<div>Before</div>
<ErrorBoundary fallback={(e) => <h2>Oh no! An Error!</h2>}>
<Broken />
</ErrorBoundary>
<div>After</div>
</>
);
}
render(() => <App />, document.getElementById("app"));
I would love to help out with this issue; it would be really nice if anyone could point me a direction of the fix
- 主要言語
- TypeScript
- スター
- 167
- フォーク
- 178
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid-site のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
solidjs/solid-site#586 ·
-
Newsletter “registration could not be completed” due to newsletter.solidjs.com ERR_NAME_NOT_RESOLVEDオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
solidjs/solid-site#588 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
solidjs/solid-site#584 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
solidjs/solid-site#583 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
solidjs/solid-site#577 ·
solidjs/solid-site の issue をすべて見る
似ている issue
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mermaid-js/mermaid-live-editor#2053 ·
メンテナーはふだん 1 日以内に返信
-
factory
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jessepollak/home#1455 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
lingdojo/kana-dojo#31227 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
appandflow/stim#1838 ·
メンテナーはふだん 1 日以内に返信