to .babelrc get the following error when building my react-native bundle
$ react-native bundle --platform android --entry-file index.android.js --bundle-output derp.jsbundle bundle --platform andr/home/nils/Programmering/ahead/ahead_mobile/node_modules/promise/lib/done.js:10
throw err;
^
TypeError: Cannot assign to read only property 'undefined' of #<Object>
at /home/nils/Programmering/ahead/ahead_mobile/node_modules/react-native/local-cli/bundle/buildBundle.js:32:7
at tryCallTwo (/home/nils/Programmering/ahead/ahead_mobile/node_modules/promise/lib/core.js:45:5)
at doResolve (/home/nils/Programmering/ahead/ahead_mobile/node_modules/promise/lib/core.js:200:13)
at new Promise (/home/nils/Programmering/ahead/ahead_mobile/node_modules/promise/lib/core.js:66:3)
at buildBundle (/home/nils/Programmering/ahead/ahead_mobile/node_modules/react-native/local-cli/bundle/buildBundle.js:24:10)
at bundleWithOutput (/home/nils/Programmering/ahead/ahead_mobile/node_modules/react-native/local-cli/bundle/bundle.js:24:10)
at Array.bundle (/home/nils/Programmering/ahead/ahead_mobile/node_modules/react-native/local-cli/bundle/bundle.js:29:10)
at Object.run (/home/nils/Programmering/ahead/ahead_mobile/node_modules/react-native/local-cli/cliEntry.js:95:3)
at Object.<anonymous> (/home/nils/.nvm/versions/node/v5.2.0/lib/node_modules/react-native-cli/index.js:88:7)
at Module._compile (module.js:399:26)
Hi when i add
to
.babelrc
get the following error when building my react-native bundlepackage.json
node v5.2
Same issue with latest node version. on both OSX and Ubuntu.