-
Notifications
You must be signed in to change notification settings - Fork 75
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
Upgrade frontend libraries #2295
Upgrade frontend libraries #2295
Conversation
b53c502
to
bc42b03
Compare
👍 @kxmbrian Does the libraries in the webpack config need to be updated ? |
bc42b03
to
a2693a3
Compare
Update: Latest changes:
Note: you might have to reinstall the node-sass package on your local machine if you get this issue. I did |
client/app/index.js
Outdated
loadModules(); | ||
import(/* webpackChunkName: "intl" */ 'intl'); | ||
import(/* webpackChunkName: "intl" */ 'intl/locale-data/jsonp/en'); | ||
import(/* webpackChunkName: "intl" */ 'intl/locale-data/jsonp/zh'); |
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.
@kxmbrian Is the import here async ? If it is then we will need to load_modules
after import success.
From their examples it seems that we might need sth like:
Promise.all([import("intl"), import("intl/xxx")]).then(function() {
load_modules();
});
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.
Updated!
a2693a3
to
6e51678
Compare
be780a7
to
3d21ee4
Compare
@weiqingtoh Have made another PR to It is possible to polyfill it for the time being, but it might be better to swap out phantomjs instead #2270. Shall we leave it for now and use the production build instead of the test build when testing locally? Related to #2307 (comment). |
@kxmbrian My main concern is whether or not we are able to catch critical JS errors using the production build - because it does ignore some js errors after all. Would it be possible to study that? The move to chrome headless might have to wait a little cause it still requires for us to manually build chrome locally, and I'm not too keen to impose that on the development team yet. If the polyfill does not take a significant amount of time, I think it's all right to do that first. |
Yup, I agree that we should let all JS warnings come to light and we should wait a while before moving to headless chrome. Made a PR for the polyfill #2309 |
👍 Thanks @kxmbrian ! |
react-summernote
has not made the upgrade. Submitted a PR to the repo for that. Right now, it only generates warnings.timeZone
prop is no longer required as a prop toIntlProvider
. Switched to usingyahoo/react-intl
instead ofjeremyyap/react-intl
.