firebase / firebase/firebaseui-web-react
/example/README.md doesn't mention creating an app first
- Ngôn ngữ chính
- JavaScript
- Star
- 1.3k
- Fork
- 246
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I followed example README.md exactly, and result was the example didn't work, with a runtime JS error:
```
Uncaught TypeError: Cannot read properties of undefined (reading 'sdkConfig')
at Object. (App.jsx:10:58)
```
Cause of the above is `npm run build` produced `firebase-config.json` that contained an error (with misleading message, firebase/firebase-tools/issues/4007) because I hadn't created a "web" app yet in the Firebase project.
The readme, since it has readers create a new Firebase project, should include a `firebase apps:create` invocation, to ensure there's a web app available. Could also mention using `firebase apps:list`, in case the Firebase project is not new, already has 2 apps, which I presume causes the same error(?) - I can imagine people trying to use most of these steps with an existing project.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với /example/README.md và tái hiện quá trình thiết lập cho đến npm run build, kiểm tra firebase-config.json được tạo ra và lỗi ở App.jsx:10. Cập nhật README để hướng dẫn việc tạo một ứng dụng web bằng firebase apps:create và kiểm tra các ứng dụng hiện có bằng firebase apps:list; công việc được xem là hoàn tất khi một độc giả mới có thể hoàn thành ví dụ mà không gặp lỗi runtime đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- firebase, javascript, react
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 52/100