Module not found: Error: Can't resolve 'module' in 'node_modules/testdouble/lib'
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- angular, javascript
- Lĩnh vực
- testing
Hướng nghiên cứu
Start with node_modules/testdouble/lib/can-register-loader.js and reproduce the failure in the reported Angular test suite. Check how testdouble declares and loads the module dependency, then verify the fix against the same module-resolution error. Done means the Angular tests no longer fail on require('module').
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have an angular app, and testdouble in my devDependencies of my package file. When I try to run my angular test suite, I am getting:
./node_modules/testdouble/lib/can-register-loader.js:1:15-32 - Error: Module not found: Error: Can't resolve 'module' in '/path/to/project/node_modules/testdouble/lib'
literally require('module'); is breaking...
I am wondering why this isn't an internal dependency of testdouble?
- Ngôn ngữ chính
- JavaScript
- Star
- 1.4k
- Fork
- 141
- Merge trung bình
- 12 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 testdouble/testdouble.js
-
Feature request: `td.func().reset()` (reset spy/stub state)Có thể đã có người làm @MatrixNeoKozak đã nhận 14 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
testdouble/testdouble.js#529 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
testdouble/testdouble.js#296 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
testdouble/testdouble.js#281 · 5 bình luận · 2 reaction ·
-
Add generator function supportĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
testdouble/testdouble.js#276 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
testdouble/testdouble.js#275 · 3 bình luận ·
Tất cả issue của testdouble/testdouble.js
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
521xueweihan/HelloGitHub#4133 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
c1overzz/dsh-bili-scroll#145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
templates/plan.md lista o agente "Tracer", mas o pacote não inclui nenhum skill/agente com esse nomeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100