Skip to content
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

Add direct redux npm dependency, redux 4.0.0 breaks #3790

Merged
merged 1 commit into from Apr 18, 2018
Merged

Add direct redux npm dependency, redux 4.0.0 breaks #3790

merged 1 commit into from Apr 18, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Apr 18, 2018

Redux 4 is here! and yarn is broken :(.

Turns out we only depend on redux indirectly, which means the redux 4.0.0 release broke the webpack build..

ERROR in /home/bdunne/.gem/ruby/2.4.3/bundler/gems/manageiq-ui-classic-8303c278b9c0/node_modules/redux/index.d.ts
(19,27): error TS1005: ',' expected.

(and quite a bit more)

Adding that direct dependency.
Also removed @types/redux, since it has been deprecated.

Cc @bdunne

[Redux 4 is here!](https://github.com/reactjs/redux/releases) and [yarn is broken](https://gist.github.com/bdunne/c58ae9f3c26e6647f29392c6cfba7f2b) :(.

Turns out we only depend on redux indirectly, which means the redux 4.0.0 release broke the webpack build..

    ERROR in /home/bdunne/.gem/ruby/2.4.3/bundler/gems/manageiq-ui-classic-8303c278b9c0/node_modules/redux/index.d.ts
    (19,27): error TS1005: ',' expected.

    (and quite a bit more)

Adding that direct dependency.
Also removed @types/redux, since it has been [deprecated](https://www.npmjs.com/package/@types/redux).
Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks @himdel !

@himdel
Copy link
Contributor Author

himdel commented Apr 18, 2018

(Redux was introduced in #2504, so nothing but master is affected.)

@miq-bot
Copy link
Member

miq-bot commented Apr 18, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/78d7bf292c539d69f0fa1eb7dd4d09dd0831b129 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@himdel
Copy link
Contributor Author

himdel commented Apr 18, 2018

(Turns out, #3781 also fixes the build problem, but better be explicit than to randomly upgrade to a new major version.)

@mzazrivec mzazrivec self-assigned this Apr 18, 2018
@mzazrivec mzazrivec merged commit 41f2464 into ManageIQ:master Apr 18, 2018
@himdel himdel deleted the fix-redux branch April 18, 2018 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants