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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
still has a circular dependencies bug #1192
Comments
A test repo would be helpfull for debugging and confirming this |
I create a repo, you can see the bug. @DeMoorJasper |
Same issue, can we help or is it some of the fixes that just need to be merged? There are quite some with the label:HMR . FYI: Currently this breaks the tab on every source change which is such a pain that we'd probably switch back to webpack just to have it not crashing chrome tabs all the time. |
There is no fix for this in the PRs yet. Feel free to help look into this and possibly fix the issue. @kjellski Feel free to hit me up on https://spectrum.chat/parcel if you need any help debugging or fixing the issue |
Seems like @xwchris deleted the repo. So I reproduced the problem with @mininao 's case using Parcel + TypeScript in this repo here https://github.com/RPDeshaies/parcel-issue-1192 From the README
Here's the package.json
So the bug is still present even with the latest version of ParcelJS. This repo should help figure out how to fix the issue. |
Status: I've been trying to follow the guide in this article (by the creator of MobX) And still, Parcel is giving me a headache with all of this :( Any help ? @DeMoorJasper ? Here's a branch from the repo I've created that reproduces the issue with the fix I've tried with the https://github.com/RPDeshaies/parcel-issue-1192/tree/fix/with-internal CC @mweststrate, maybe you have an idea ? I saw in your post that you were using parcel as well ?
|
I've got the same with Parcel 1.10.3 and with Typescript (external compile).
|
Any updates on this issue? |
Also getting this error, any updates? |
My workaround was to create a new file that eliminates the |
adding to @emadabdulrahim鈥檚 point, you can find said circular dependencies by using madge: npm -g install madge
madge --circular path/to/index.js |
We've done that and resolved all these circular references, but it didn't help. The problem still persisted. |
Just for reference and searchability, in Firefox dev tools console this error shows up as In my case, the workaround to remove all circular imports seemed to do it. Now hmr works for all files. |
Choose one: is this a 馃悰 bug report
馃帥 Configuration (.babelrc, package.json, cli command)
.babelrc
react.js
welcome.js
react-dom.js
test.js
index.html
when save the
react-dom.js
it will show the bug馃 Expected Behavior
print render limited times
馃槸 Current Behavior
print forever, it will run untill Maximum call stack size
馃實 Your Environment
The text was updated successfully, but these errors were encountered: