Same code works in playground but doesn't in tutorial
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, typescript
- Lĩnh vực
- documentation, frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 167
- Fork
- 178
- Merge trung bình
- 10 giờ 38 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của solidjs/solid-site
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
solidjs/solid-site#586 ·
-
Newsletter “registration could not be completed” due to newsletter.solidjs.com ERR_NAME_NOT_RESOLVED Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
solidjs/solid-site#588 ·
-
A More Modern UI for the Website Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
solidjs/solid-site#584 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
solidjs/solid-site#583 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
solidjs/solid-site#577 ·
Tất cả issue của solidjs/solid-site
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
bcgov/bc-wallet-mobile#4761 · 1 bình luận ·
-
external-issue to-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100