-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Webpack 4 + UglifyJS Error being thrown with Plotly 1.43.1 release. #3379
Comments
@morgangraphics Thanks for reporting. |
@morgangraphics Would you mind testing one of these? |
My apologies for the late reply, I was traveling last week. I'll take a look at it and report back. |
That would be much appreciated. |
I tried both versions of the plotly file pasted above. Minified file worked, meaning the build was successful and completed without any errors. The other file did not work, throwing an error in relation to some weird encoding.
|
Our un-minified bundle does have some non-utf-8 characters in it. But that hasn't changed in 1.43.0 😕 |
I'm not super concerned about the encoding as I C+P the code out of the file from the browser into my node_modules/plotlyjs/dist folder for testing. (It was the easiest and quickest way to test given my time restraints today). I think the regression issue with regards to the original bug |
Thank you very much for testing it! |
Upgraded from 1.42.5 to 1.43.1
In strict mode code, functions can only be declared at top level or immediately within another function. [./node_modules/plotly.js/dist/plotly.js:70364,0]
Looks like
is the offending function. Reverting back to 1.42.5 was the only solution.
I believe this is just an organizational issue rather than a full scale bug.
The text was updated successfully, but these errors were encountered: