Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

RangeError Maximum call stack size exceeded when testing Vue project

Đang mở
#319 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của evanw/node-source-map-support

Tất cả issue của evanw/node-source-map-support

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.