-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Build issue related to html-react-parser #10109
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
Comments
I also found this error log.
|
There is another error:
|
The issue is probably related to scope hoisting. If I add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🐛 bug report
After upgrading Parcel from v2.9.x to v2.13.3, my project got a production issue about
f is not a constructor
.It works normally in dev environment. I raised this issue in the community of
html-react-parser
but they suspect this issue is caused by Parcel. It seems the issue is related to whether to minify.For example, If I do:
The output is
undefined
in production and the class definition in Devopment.🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
The use of
html-react-parser
should not have any issue.😯 Current Behavior
Getting error about
f is not a constructor
.💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: