-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Packager] "Requiring unknown module" error for module from package.json browser field #9518
Comments
Same here. Is there any workaround? |
I can see the only workaround is to fork a dependency and remove browser field from its package.json or wrap the |
@gitim Thanks for the answer. However, I'm using |
Summary: This adds support for `false` values in `package.json` `"browser"` and `"react-native"` mappings. All `false` values are not longer silently ignored, but redirected to an empty file. Fixes #9854 #9518 Reviewed By: bestander Differential Revision: D3876521 fbshipit-source-id: 96d1ba03518812bc88c51672c374956eabd40c9b
Fixed with 5710b23 |
@davidaurelio cool, thanks! |
Summary: This adds support for `false` values in `package.json` `"browser"` and `"react-native"` mappings. All `false` values are not longer silently ignored, but redirected to an empty file. Fixes facebook#9854 facebook#9518 Reviewed By: bestander Differential Revision: D3876521 fbshipit-source-id: 96d1ba03518812bc88c51672c374956eabd40c9b
@davidaurelio I see that commit is supposed to be on This is what I have in my package.json:
But I get this: I've tried all the suggestions for clearing cache and reinstalling npm modules. Can't get it to work. What am I doing wrong here? |
Summary: This adds support for `false` values in `package.json` `"browser"` and `"react-native"` mappings. All `false` values are not longer silently ignored, but redirected to an empty file. Fixes facebook#9854 facebook#9518 Reviewed By: bestander Differential Revision: D3876521 fbshipit-source-id: 96d1ba03518812bc88c51672c374956eabd40c9b
@lukescott this might be due to a long standing bug in our browser field logic :-( sorry about that |
Summary: This adds support for `false` values in `package.json` `"browser"` and `"react-native"` mappings. All `false` values are not longer silently ignored, but redirected to an empty file. Fixes facebook#9854 facebook#9518 Reviewed By: bestander Differential Revision: D3876521 fbshipit-source-id: 96d1ba03518812bc88c51672c374956eabd40c9b
@gitim @davidaurelio how did u fix this? I have the same error when I did a few corrections it shifter from module 3 to 4 in the same error I tried this |
Hi! After upgrading to the react-native@0.32 I am getting
in my project I am using https://github.com/yahoo/intl-messageformat, which has browser field in its package.json https://github.com/yahoo/intl-messageformat/blob/master/package.json#L31-L34, and while trying to require
./lib/locales
it fails.Seems these #2208, facebookarchive/node-haste#77, https://github.com/facebook/node-haste/issues/62 related to my issue.
The text was updated successfully, but these errors were encountered: