-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel hangs and uses 100% CPU #1631
Comments
I've tried out the reproducable repo and I can confirm this bug, not sure what is causing it yet though. |
For some reason this line resolves to index.js, I'll dig deeper into why this is happening and try to find a fix
|
So I've found the bug and I'm not sure it should be fixed. So the package This: "browser": {
"assert": "nanoassert",
"./server.js": "index.js"
} Should be this: "browser": {
"assert": "nanoassert",
"./server.js": "./index.js"
} We could also change Resolver.getAlias to handle this behaviour but like explained above, this could cause other issues for packages that end with a known extension in their name (for example |
Related to an issue encountered, by a user of parcel: parcel-bundler/parcel#1631
I've opened up a PR in the pkg. |
Thanks so much for your speedy response and for opening the PR, much appreciated! |
🐛 bug report
Hi there, I'm trying to use Parcel to build a simple website. When I add the nanocomponent package to my dependencies and try to require it, parcel hangs and uses 100% CPU instead of building. When I remove this dependency, everything works fine. Please check out the repro here: https://github.com/lachenmayer/parcel-bundler-hang-repro
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
localhost:1234
nanocomponent
.😯 Current Behavior
Parcel hangs:
💁 Possible Solution
I am aware of #1331 and #637 which seem similar.
I have tried downgrading Parcel to 1.7.1, but that did not help.
💻 Code Sample
https://github.com/lachenmayer/parcel-bundler-hang-repro
🌍 Your Environment
Thanks a lot, Parcel is awesome!
The text was updated successfully, but these errors were encountered: