Bundling for Web attempts to import node.js modules from dependencies due to improper compiler environment selection
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- firebase, javascript, node.js
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề với [email protected], package firebase/auth và target trình duyệt/web của Metro. Điều tra việc lựa chọn môi trường trình biên dịch và xác minh rằng bản build cho trình duyệt không còn cố tải các dependency của Node.js; issue không nêu tên các file hoặc test cụ thể.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Do you want to request a feature or report a bug?
Report a Bug
What is the current behavior?
When importing libraries like 'firebase' who depend use 'browser' as the main target and compiling for a metro 'browser' / web target the compiler still attempts to load node.js dependencies when it should not.
This has been previously reported to firebase-js-sdk but their staff believe this is a metro compiler issue.
See https://github.com/firebase/firebase-js-sdk/issues/7849#issuecomment-1857889012
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
I will attempt to build you a repository for testing this as soon as I can.
This is easily reproduce when importing [email protected] and attempting to access the firebase/auth package.
What is the expected behavior?
Only browser dependencies should load in a browser-based build.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
- Ngôn ngữ chính
- JavaScript
- Star
- 5.6k
- Fork
- 702
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 60
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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 react/metro
-
constant-folding-plugin emits 0/0 (NaN) for arithmetic on destructured bindingsCó thể đã có người làm @cpruijsen đã nhận 10 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
react/metro#1927 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
react/metro#2062 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[0.83.x] Backport micromatch removal and dotfile/multipart watcher fix togetherCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 2 ngày
-
`dependencies is not iterable` / `Cannot read property 'reduce' of undefined`: `FileStore` serves zero-prefixed cache files as hitsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
react/metro#1961 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Có thể đã có người làm @Jxxunnn đã nhận hôm nay. Đang mởBrowser Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
getsentry/sentry-javascript#25497 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
resource: destroying a resource calls AbortController.abort() without a reason, creating an AbortError with a stack trace each timeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
angular/angular#71422 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
facebook/docusaurus#12739 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
vercel/ai#23537 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày