-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
/es/redux.mjs Causes Error #3205
Comments
This isn't a redux issue. That file doesn't include any reference to Something else is up with your build tooling. Nothing should be using that file. It's intended for browsers with the |
In case you really need to use *.mjs you have to change your webpack config: node-fetch/node-fetch#493 (comment) Though webpack 4 should support those without further config. |
Alright, thanks for the heads-up! I'm pretty new to I checked out that link you posted to see if I could use it as reference to force
Oddly enough, when I clear out my |
What is the current behavior?
New developers on our team who have had our project checked out for a while have a version of
redux
that has a redux.mjs file in addition to the redux.js file under the /node_modules/redux/es/ directory. Developers with an older working copy of the project only have a single redux.js file in there. The presence of this newer redux.mjs causes an error when we build our project:Both the older developers with a functioning local copy of the project and newer developers whose project won't build are using the same version:
v4.0.0
. Removing the redux.mjs file fixes the issue. I'm trying to find a more permanent solution on my end, but I was just wondering why redux.mjs shows up for only the newer installs of our project, and not the older ones even though the older devs regularly purge/reinstall packages vianpm
.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.
This happens when running tests via
karma
. I'm unfamiliar withkarma
at the moment, so I can't provide any helpful details. I'm only curious as to why redux.mjs appears in the packages for newer teams vs older teams.What is the expected behavior?
The /redux/es/ directory shouldn't contain a redux.mjs file as it seems.
Which versions of Redux, and which browser and OS are affected by this issue? Did this work in previous versions of Redux?
We've tried both
v4.0.0
andv4.0.1
The text was updated successfully, but these errors were encountered: