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
Build flaky with Typescript enum: throws EvalError not defined #1360
Comments
Could you please try with the latest version? We have just released a few fixes for issues that can be related to yours. |
I just tried the new version and have the same error |
Ok, thank you! Just wanted to be sure that this is not related to the bag with pluginOptions. We will take a look soon. |
FYI I fixed the error and got a successful build by replacing these 2 enums (out of 170 total) with their object+type counterpart. I have no clue what makes these enums error in particular. |
Could you please add to your webpack config the next plugin:
It will create a build report in the
Fortunately, it all can be done with jq:
|
Ok thanks I have the debug report I'll send it privately |
Is there any update on this? |
Environment
Description
Something is off with some enums. I use enums in many places, they mostly work fine. But in some cases the build fails on one of them:
Also, I call it flaky because this happened:
enum
which caused the errorenum
(see above)This is
ContentWidth
from/src/constants/style.ts
Reproducible Demo
As I can't determine exactly how the problem occurs, I'll start with some debug logs:
None of the variables from this module should be undefined
The text was updated successfully, but these errors were encountered: