Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Detected circular dependencies and add debug logs for nodeModulesCollector #8864

Merged
merged 10 commits into from
Feb 14, 2025

Conversation

beyondkmp
Copy link
Collaborator

@beyondkmp beyondkmp commented Feb 12, 2025

fix #8857

Root cause
It's caused by #8851

How to fix

In situations like issue #8851, a skipCircularDeps parameter should be added. This way, when traversing the tree, only the values inside are retrieved without further traversal, thus avoiding an infinite loop.

Copy link

changeset-bot bot commented Feb 12, 2025

🦋 Changeset detected

Latest commit: 6055b5b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@beyondkmp beyondkmp requested a review from mmaietta February 13, 2025 02:49
test/src/HoistedNodeModuleTest.ts Outdated Show resolved Hide resolved
.changeset/swift-hotels-exercise.md Outdated Show resolved Hide resolved
@beyondkmp beyondkmp changed the title fix: skip circular deps fix: Detected circular dependencies and add debug logs for nodeModulesCollector Feb 13, 2025
@beyondkmp beyondkmp merged commit 3fe27d7 into electron-userland:master Feb 14, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

26.0.6 node-module-collector RangeError: Maximum call stack size exceeded
2 participants