-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Import lowercase chart.js/dist/chart.min #13419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @pavol-tk, thank you for your contribution.
Unfortunately, this is a breaking change on case-sensitive filesystems, because Sylius is currently locked to chart,js v2.9.3.
The issue is not caught by the automated checks, because those still use Gulp.
I checked out your branch, ran:
yarn install
yarn encore production
and got the following error:
This dependency was not found:
* chart.js/dist/chart.min in ./src/Sylius/Bundle/AdminBundle/Resources/private/js/sylius-chart.js
I tested on a case-sensitive filesystem.
I think a full update to chart.js 3 is necessary, can you do that?
I upgraded chart.js to 3.7.0.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you, @pavol-tk!
I will approve this, but I think it also needs a mention in the UPGRADE files.
Also, a separate PR is needed for https://github.com/Sylius/Sylius-Standard with the upgrade of chart,js.
Hey! |
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @vvasiloi wrote above, there is a need to add a note to UPGRADE file about upgrading chart.js, @pavol-tuka could you do that?
Blocked by #13829 |
Is it ok now for this PR ? The issue that blocked it seems fixed. |
@UlrichHP there's one more issue: how to upgrade without breaking end-user applications. |
Oh ok i understand, thanks for the explanation @vvasiloi. |
Hey, unfortunately, it won't be that simple. This change will break charts on each case sensitive OS. We have to open it to master and provide a nice upgrade file + fix it on Sylius Standard. Sorry, for making some mess, as I was the one responsible for lowering the branch |
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
@lchrusciel maybe we can provide some sort of a compatibility layer in |
Victor, I'm open to that, but it's outside of my specialization zone. I would merge it to master and provide upgrade file for that |
@lchrusciel I looked into it, but couldn't find anything... I'm not proficient in JS stuff. |
Thanks, Pavol! 🎉 |
Related to #12560
To follow chart.js documentation (https://www.chartjs.org/docs/latest/getting-started/v3-migration.html):
Distributed files are now in lower case. For example:
dist/chart.js
And to avoid error: