-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Uncaught Error: storeKey has been removed and does not do anything while importing DragDropContext (using react-redux 6.0.0) #1056
Comments
We have the same issue after adding react-beautiful-dnd to our existing project (also using react-dnd and redux/react-redux) |
@michaelshiel For now downgrading |
|
yeah broken here too. |
Not sure why this was closed. This error is still present in the latest version. Please upgrade to latest react-redux and dont use storeKey |
A way to solve this without downgrading the whole-project My usage of it in my webpack-config:
|
This is closed because it feels like a bundler issue. If a project declares that it needs 5.x of a dependency, then a 6.x dependency should not be provided to it /cc @TrySound thoughts? |
@alexreardon Agreed, it is a bundler issue -- at least in my case. For other reasons, I earlier on set my webpack-config so that any node-module imports (including from libraries), will look for the module in the root It sounds odd to have done this (some would even be horrified!), but it helped with a few issues (some at runtime, and some with Typescript), and has for the most part worked fine. (it also has the nice side effect of substantially reducing -- by about 50% -- the total module-count and therefore build time) For libraries that do, in fact, need the exact version they specify, I use the |
The preference for this library is to use 2 versions of react-redux bundled? That seems off and unfortunate considering that the new react-redux 6 is conforming to newer react standards and not triggering errors in when |
We plan on upgrading react-redux once some performance issues are overcome reduxjs/react-redux#1177 For now if you want to use react-redux v6 then your bundler will need to provide a v5 react-redux to react-beautiful-dnd. This should be the correct behaviour of a bundler as we declare a dependency on 5.x |
It would be a bad idea to provide a dependency to a piece of software that falls outside of its supported sem ver range |
@alexreardon Yeah it sounds really bad, but in practice I've had almost no issues (this library is the second exception I think) with just forcing all the libraries to use the latest (other-module-specified) versions of other libraries. (it's a good sign as it means most libraries do not add breaking changes -- or when they do, other libraries at least produce new versions that are compatible with it, so I upgrade them all in one go) I can definitely understand people shaking their head at this configuration though, which is why I only use this in my personal projects. I do so for the bundle size reduction (module-count drops from ~2600 to ~1400, with a corresponding build-time decrease), and more importantly, to fix incompatibilities between versions requested by different libraries; some keep requesting old incompatible versions because their authors are no longer developing them, and I don't want to bother with creating a fork. Though I suppose I could use the |
Do you have anything like yarn resolutions in your package.json? |
6.0.1 to 6.2.1 - refactor - fix Performance test it now wih:
|
Thanks @alexreardon removing my own react-redux dependency handled it for it me. This is a great component with excellent docs, perhaps a note in the install doc would be in order. It seems a common enough use case for someone to have a react-redux dependency prior to adding this, I did look through the issues prior to posting but totally missed this. |
Bug or feature request?
bug
Expected behavior
Compile application successfully
Actual behavior
Stack trace:
Generated here:
https://github.com/reduxjs/react-redux/blob/63af52f1b776b2223027c1a73c0f2a725c377666/src/components/connectAdvanced.js#L86
Steps to reproduce
What version of React are you using?
react: 16.5.2
redux: 4.0.1
react-redux: 6.0.0
What version of react-beautiful-dnd are you running?
10.0.3
Demo
Any solutions or I have to downgrade react-redux?
The text was updated successfully, but these errors were encountered: