-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Errors when bundling plotly.js with ionic #2599
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
The source for that is: plotly.js/src/plots/cartesian/axes.js Lines 209 to 210 in c91866d
It looks like you have some transformation that's incorrectly adding
No idea why that would have happened, but it certainly doesn't look like a correct transformation of the source. |
This might be related to #2528 which got resolved by dropping @aiko-psi if 1.37.0 is working for you, than I suggest using that. We won't patch the 1.35.x series to resolve this issue. But if you're still seeing issues in 1.37.0, would you mind giving us a bit more info e.g. which minifier are you using, which entry file are you pointing your minifier towards, what command are you using? |
Thank you both for your replies! @etpinard I am using ionic and its minifier. The command
I tried to go back to Version 1.35.2 but the error is still there. The Error remains the same with different versions of plotly, just the line of the error changes (always in plotly files). I attach two exaples for errors I got. It seems to me this problem has something to do with the date formats for the axes, would you agree? Do you have any idea to fix it? Because the app is completly broken at the moment and I need it. |
@aiko-psi any chance your environment has d3 v4 in it? Plotly uses d3 v3, and we've seen a case where d3 v4 ends up replacing v3 and breaking everything, in similar ways to that (@nicolaskruchten remind me where that was debugged?) |
@alexcjohnson I think d3 is not integrated in Ionic because every tutorial for ionic explains that you have to run
|
The symptom we had was that |
Odds are this ticket is obsolete. Closing. @aiko-psi feel free to reopen another issue if you're still encountering problems of the likes. |
Hi,
I'm using plotly.js with ionic and I am very happy with it. But when I trie to minify the project during build for production, there is a strange Error. All other Errors are gone with the newest Version (1.37.0). I had the same issues with V 1.35.2 .
Does someone has a clue whats the problem and how I can solve it?
The text was updated successfully, but these errors were encountered: