Redux: "Invalid descriptor for property 'dispatch'" in IE11

Created on 10 Jul 2019  ·  10Comments  ·  Source: reduxjs/redux

Do you want to request a _feature_ or report a _bug_?

Bug.

What is the current behavior?

With Redux 4.0.2 and up, IE11 throws up an error on load of "Invalid descriptor for property 'dispatch'." The script debugger flags 570,9 in redux.js as the source of the error (which appears to be inside the _objectSpread2(target) function. I don't think this is the source of the error itself as that function exists within previous versions of Redux and seems unchanged between versions. Redux 4.0.1 works fine and does not have this issue.

What is the expected behavior?

Redux works normally as expected.

Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?

4.0.2 and 4.0.3 running in IE11 on Windows 10. No other browser seems to be affected. Previous versions (4.0.1 being the most recent) worked.

Most helpful comment

Pushed out 4.0.4 now. Thanks for letting us know!

All 10 comments

Possibly related to this Babel issue?

https://github.com/babel/babel/pull/10170

Also, someone just raised a vaguely similar issue with Redux Starter Kit:

https://github.com/reduxjs/redux-starter-kit/issues/152

I think it probably is. Guessing the versions of 4.0.2 and 4.0.3 currently on npm were built when those bugs were live in Babel.

Possibly related issue on react-native

We ran into this issue today as well. reverting to [email protected] fixed the issue for us on react-native 0.57.5

I experience the same problem with "redux": "^4.0.1"

@wieringen check in your lock file - you probably upgraded without knowing it to 4.0.2 or 4.0.3
removing the carret in your package json will make sure it doesn't pull the failing minor update

Ahh yes you are right. :)

Same issue with native browsers on android 5.

Looks like they just fixed it yesterday: https://github.com/babel/babel/releases/tag/v7.5.4

I can push a 4.0.4 (error not found?) release using Babel 7.5.4.

Pushed out 4.0.4 now. Thanks for letting us know!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

captbaritone picture captbaritone  ·  3Comments

vslinko picture vslinko  ·  3Comments

vraa picture vraa  ·  3Comments

caojinli picture caojinli  ·  3Comments

ms88privat picture ms88privat  ·  3Comments