-
Notifications
You must be signed in to change notification settings - Fork 982
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
Fixes #28448 - Use Intl npm modules from vendor #7233
Conversation
c2dff3c
to
a8c6179
Compare
tests are failing on travis seem related,
|
Tests fail in Travis because this should work with theforeman/foreman-js#81 and Travis uses an older version from About your cd foreman-js
npm run clean
npm i
cd ../foreman
rm -rf node_modules package-lock.json
npm i
npm run foreman-js:link |
thanks @sharvit, I did the following and that specific test keeps failing :( |
a8c6179
to
9c5a7d7
Compare
package.json
Outdated
"intl": "~1.2.5", | ||
"jed": "^1.1.1", | ||
"react-intl": "^2.8.0" | ||
"@theforeman/vendor": "3.8.0-intl.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.
I deployed this version to npm
so it will be easier to test.
It should still be tested against theforeman/foreman-js#81 locally to make sure both work well.
Awesome work @sharvit! I have great news and bad news:
MountingService.js:89 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "react-component" has already been used with this registry
at Object.<anonymous> (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:32833:23)
at __webpack_require__ (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:679:30)
at fn (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:89:20)
at Object.<anonymous> (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:68038:94)
at __webpack_require__ (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:679:30)
at fn (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:89:20)
at Object.<anonymous> (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:44342:65)
at __webpack_require__ (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:679:30)
at fn (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:89:20)
at Object.<anonymous> (https://centos7-luna-devel.rlavi.example.com:3808/webpack/katello.js:44331:18) |
9c5a7d7
to
95e6472
Compare
Thanks @xprazak2 I fixed the issue with changing the locale. |
95e6472
to
86fcd51
Compare
@LaViro I fixed the issue you mention and I have Great News 😄 The Issue The solution |
86fcd51
to
12ad4d8
Compare
Notice this change will break nightlies and we will need to rebuild all the plugins after merging this PR |
12ad4d8
to
93ece05
Compare
93ece05
to
52de1fd
Compare
52de1fd
to
907d80d
Compare
@sharvit is this PR still valid or should we close it? |
Thanks @sharvit ! |
Load
jed
,intl
andreact-intl
from@theforeman/vendor
.Support async import.
Work with: theforeman/foreman-js#81