ReactNative - JS load error #72

Closed
opened 2016-01-14 12:18:42 +00:00 by iyawnis · 3 comments
iyawnis commented 2016-01-14 12:18:42 +00:00 (Migrated from github.com)

I have installed redux-storage using npm install and also made sure to rebuilt app etc.

When I have the following line in my redux store, the JS fails to load:

import createEngine from 'redux-storage/engines/reactNativeAsyncStorage';

I tried emulator and physical device, and both give error: 'Unable to download JS bundle.Did you forget to start the dev server...'

If I take out that line and reload js, the app works normally. This is with the folliowing dependencies:

  "dependencies": {
    "immutable": "=3.7.6",
    "react": "=0.14.3",
    "react-native": "=0.16.0",
    "react-native-radio-buttons": "^0.8.0",
    "react-redux": "=3.1.2",
    "redux": "=3.0.5",
    "redux-storage": "^1.4.3",
    "underscore": "^1.8.3"
  },

Any suggestions of what might be causing this ?

I have installed redux-storage using npm install and also made sure to rebuilt app etc. When I have the following line in my redux store, the JS fails to load: `import createEngine from 'redux-storage/engines/reactNativeAsyncStorage';` I tried emulator and physical device, and both give error: 'Unable to download JS bundle.Did you forget to start the dev server...' If I take out that line and reload js, the app works normally. This is with the folliowing dependencies: ``` "dependencies": { "immutable": "=3.7.6", "react": "=0.14.3", "react-native": "=0.16.0", "react-native-radio-buttons": "^0.8.0", "react-redux": "=3.1.2", "redux": "=3.0.5", "redux-storage": "^1.4.3", "underscore": "^1.8.3" }, ``` Any suggestions of what might be causing this ?
michaelcontento commented 2016-01-19 11:27:08 +00:00 (Migrated from github.com)

I'm unable to reproduce this error. But Unable to download JS bundle.Did you forget to start the dev server.. sounds like react-native is unable to fetch the JS bundle from your local machine.

Is the host/port configuration properly set and reachable? Or maybe the react-native packager has some problems with your setup? Can you spot anything in the output of the packager?

I'm unable to reproduce this error. But `Unable to download JS bundle.Did you forget to start the dev server..` sounds like `react-native` is unable to fetch the JS bundle from your local machine. Is the host/port configuration properly set and reachable? Or maybe the `react-native` packager has some problems with your setup? Can you spot anything in the output of the packager?
iyawnis commented 2016-01-22 18:41:01 +00:00 (Migrated from github.com)

This should be somehow related to redux-storage, as by removing it I no longer had the problem. I have now upgraded to RN 0.18, will try to retest as soon as possible.

This should be somehow related to redux-storage, as by removing it I no longer had the problem. I have now upgraded to RN 0.18, will try to retest as soon as possible.
michaelcontento commented 2016-01-25 07:43:08 +00:00 (Migrated from github.com)

I've tried to reproduce this error with various versions of react-native without any success 😞

And as long as we don't have any more detailed informations about the error there is nothing I could do here, therefore closed. But feel free to re-open this issue if you have new details at hand!

I've tried to reproduce this error with various versions of `react-native` without any success :disappointed: And as long as we don't have any more detailed informations about the error there is nothing I could do here, therefore closed. But feel free to re-open this issue if you have new details at hand!
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MichaelContento/redux-storage#72
No description provided.