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

Revert "feat(parcel_sourcemap_node): upgrade to napi-rs v2" #91

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

devongovett
Copy link
Member

@devongovett devongovett commented Jan 27, 2022

Reverts #85

This appears to have introduced several issues:

On Windows (and possibly some Linux distros also??), the process randomly crashes during Parcel builds. See parcel-bundler/parcel#7578, parcel-bundler/parcel#7590, parcel-bundler/parcel#7598, parcel-bundler/parcel#7603. We believe this to be caused by the source map upgrade, which was released separately from Parcel 2.2.1. Subsequent to this, issues began appearing.

Personally, I have not been able to reproduce it on any of my machines, but @mischnic verified that reverting the sourcemap package to 2.0.0 fixed it for him. I'm not totally sure what the underlying issue is, but it seems to be related to worker threads. Many reports in the above issues confirm that running with PARCEL_WORKER_BACKEND=process works around the issue.

cc. @Brooooooklyn. I see you commented on nodejs/node#37673 and on avajs/ava#2926 (comment) and subsequently disabled worker threads on the napi tests in napi-rs/napi-rs#1004. This seems related to the error we are seeing. Perhaps the issue is somewhere in napi-rs itself? I'm not sure...

I'm going to revert this for now while we investigate the above issues.

@height
Copy link

height bot commented Jan 27, 2022

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@Brooooooklyn
Copy link
Contributor

I see, thanks for mentioning, I will keep an eye on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants