-
Notifications
You must be signed in to change notification settings - Fork 28
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
0.18.0 broke some imports #208
Comments
Thanks for the report. I'll have a look into this later today for you! |
It seems like RestError isn't part of a circular chain itself, but that it happens to be a dependency of a circular chain, and therefore was hoisted even though it didn't need to be. Some dependencies of circular chains do need to be hoisted, so there is definitely a missing condition needed to make that determination. Will investigate further. |
Sounds like it! Thanks for looking into it. No pressure, we are in no hurry to update. |
I think I found the problem. I'm hoisting
Working on a fix, hopefully will have something published in a bit. :) |
Fixed in |
Great, thanks, it works now! |
Hi
Just tried upgrading to 0.18.0 for Tutanota and the app stopped loading. The reason it the superclass is not imported (this import is not defined: https://github.com/tutao/tutanota/blob/fd7c8d8c0b010cb5af535ede5da347d812e40ef7/src/api/common/error/RestError.js#L3)
generated code looks like this:
and TutanotaError is obviously undefined at this point. I think there's some missing condition for hoisting.
If you want to run it yourself, you can clone, change nollup to 0.18.0,
npm i
,node make
and point any http server to build folder. I might come up with a better example later but maybe you already have an idea what might be wrong.The text was updated successfully, but these errors were encountered: