Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Errors on react-native 0.33.0 #225

Closed
cymen opened this issue Sep 16, 2016 · 2 comments
Closed

Errors on react-native 0.33.0 #225

cymen opened this issue Sep 16, 2016 · 2 comments

Comments

@cymen
Copy link

cymen commented Sep 16, 2016

This module was working with react-native 0.30.0 however it stopped working with 0.33.0 with this error:

09-16 13:18:00.770 30570 30612 E ReactNativeJS: Requiring unknown module "./locale-data/complete.js".If you are sure the module is there, try restarting the packager or running "npm install".

I initially thought this was due to .bablerc not being in .npmignore which is apparently becoming a good practice (see facebook/react-native#4062). I tried removing .babelrc but it didn't fix the problem.

I didn't get much further but wanted to report it in case react-native support is desired.

@Bhullnatik
Copy link

To offer some more informations, these packages were not working due to a buggy implementation of the browser field in package.json in React Native (See facebook/react-native#9854).

It has since been fixed in the 0.35-rc version, but now you must import specifically the locales you wish to use like so:

import 'intl/locale-data/jsonp/en.js';

since it will not load all locales automatically now.

@caridy
Copy link
Collaborator

caridy commented Sep 30, 2016

thanks for the clarificatino @Bhullnatik, closing this!

@caridy caridy closed this as completed Sep 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants