-
-
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
3.2.0 Global not defined with in isPlainObject #1346
Comments
Thank you for reporting. What bundler do you use? We should definitely fix this but a temporary workaround would be to enable cc @jdalton: this means libraries can't depend on Lodash modules using |
Another option would be to temporarily switch to UMD build ( |
The way I see it, unless Lodash agrees to fix it on their end reasonably quickly by removing dependency on
I don't know how to enable |
@gaearon browserify is supposed to pick up whether the |
Maybe |
^ was just going to post that - the other thing that might be wrong is having |
@gaearon in relation to #1346 (comment) - see #1339 (comment) where JD mentions he will be releasing isPlainObject on npm without the global reference in the next version. |
I can release the update this evening. |
Awesome, thank you for quick response! |
No problem. Third-party integration, like Redux, is our top priority.
You'll also be able to drop the |
Oooh awesome! Glad a fix is on the way. Anyway, that is a good catch I do have detect globals off and while enabling it would fix the immediate error it wasn't needed before so it seemed worth reporting. |
I'm still having the issue of the missing |
Have you updated Redux? This shouldn't be an issue with newer versions of Lodash. |
I have tried the whole thing yesterday and it is having this issue. May I provide a minimal test repository? |
Well, I have just created a test repository with the issue. Note that after compilation, the |
So is it Redux uses |
I'm building our app files with browserify, babel 6.4, envify, react-redux, react 0.14 and the bundles are throwing this error that global is not defined. I take it envify or loose envify is not factoring out the globals?
For now I have reverted to 3.1.7 of redux and 4.1.2 of react-redux but of course it would be nice to see a real fix.
The text was updated successfully, but these errors were encountered: