Skip to content

RN 0.50.1 StorageController.react-native.js Break  #508

Closed
@ghost

Description

I've setup a new project with Parse, Mobx etc...

But I can't use Parse because I have this error

bundling failed: UnableToResolveError: Unable to resolve module react-native/Libraries/react-native/react-native.js from LONGPATH/node_modules/parse/lib/react-native/StorageController.react-native.js: Module does not exist in the module map

I've solve the problem when I have change this:

try {
	// for React Native 0.43+
	AsyncStorage = require('react-native/Libraries/react-native/react-native-implementation')
		.AsyncStorage;
} catch (error) {
	AsyncStorage = require('react-native/Libraries/react-native/react-native.js').AsyncStorage;
}

to this

try {
	// for React Native 0.43+
	AsyncStorage = require('react-native/Libraries/react-native/react-native-implementation')
		.AsyncStorage;
} catch (error) {
	// AsyncStorage = require('react-native/Libraries/react-native/react-native.js').AsyncStorage;
}

I've try to debug and my the application don't go to the catch but it break the code ...

I use react native 50.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions