RangeError Maximum call stack size exceeded when testing Vue project
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ệ
- javascript, node.js
- Lĩnh vực
- testing-qa, tooling
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi kiểm thử Vue thông qua vue-cli-service, sau đó kiểm tra retrieveSourceMapURL, mapSourcePosition và prepareStackTrace trong source-map-support.js cùng với đường dẫn mochapack TestRunner.Reporter.onLoadingException được hiển thị trong trace. Hoàn tất có nghĩa là xác định và kiểm thử một thay đổi ngăn stack overflow khi tải các source map lớn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi, this is somewhat of a duplicate of these issues: #252, #249, and #86. But I wanted to call more attention to it.
I am getting this error when attempting to test our Vue project using vue-cli-service :
RangeError: Maximum call stack size exceeded
at RegExp.exec (<anonymous>)
at retrieveSourceMapURL (D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected]\node_modules\source-map-support\source-map-support.js:174:21)
at Array.<anonymous> (D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected]\node_modules\source-map-support\source-map-support.js:186:26)
at D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected]\node_modules\source-map-support\source-map-support.js:85:24
at mapSourcePosition (D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected]\node_modules\source-map-support\source-map-support.js:216:21)
at wrapCallSite (D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected]\node_modules\source-map-support\source-map-support.js:397:20)
at Function.prepareStackTrace (D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected]\node_modules\source-map-support\source-map-support.js:446:39)
at maybeOverridePrepareStackTrace (node:internal/errors:141:29)
at prepareStackTrace (node:internal/errors:115:5)
at TestRunner.Reporter.onLoadingException (D:\a\_work\1\s\common\temp\node_modules\.pnpm\[email protected][email protected][email protected]\node_modules\mochapack\src\runner\testRunnerReporter.ts:104:13)
The version of our source-map-support is 0.5.21.
I believe the issue is coming from having large source maps that are being pulled in during the test, and the regex trying to scan through it. Is there a way to fix this to help further avoid this error?
Let me know if there's anything I can help out with in terms of solving this, or if there's anything more I should understand about the current state of the code and why this issue is happening.
- Ngôn ngữ chính
- JavaScript
- Star
- 2.2k
- Fork
- 221
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 evanw/node-source-map-support
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
evanw/node-source-map-support#344 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
evanw/node-source-map-support#343 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
evanw/node-source-map-support#337 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
evanw/node-source-map-support#333 ·
-
Provide esm versionĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
evanw/node-source-map-support#330 · 2 bình luận · 9 reaction ·
Tất cả issue của evanw/node-source-map-support
Issue tương tự
-
ACK_WAITING HELP_WANTED UPDATE_CS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OWASP/CheatSheetSeries#2781 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Hermes: /ponytail off never reaches the model, the ruleset stays activeCó thể đã có người làm @szsunyuan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DietrichGebert/ponytail#1121 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
integrations plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
mem0ai/mem0#7622 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug package:vitest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
cloudflare/workers-sdk#16238 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày