reactjs - fbBatchedBridge is undefined -
the application compilable before started experimenting babel compiler , adding/removing node modules. can't connect development server.
the error:
unable execute js call: _fbbatchedbridge undefined
the strange thing react packager line (only 1 dependency, 14ms) suggests may not crawl dependencies @ all:
<start> find dependencies transformed 1/1 (100%) <end> find dependencies (14ms)
- similar error on both ios , android devices.
- both in simulator , on device.
- the url accessible.
- wiping lines in
package.json
,.babelrc
,index.js
didn't help, suggests else may wrong. - editing
appdelegate.m
,react-native-xcode.sh
didn't help, other answers suggested.
package.json:
{ "name": "reactproject", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start" }, "dependencies": { "babel": "^6.5.2", "babel-core": "^6.1.2", "babel-plugin-syntax-jsx": "^6.8.0", "babel-plugin-transform-async-to-generator": "^6.8.0", "babel-plugin-transform-runtime": "^6.1.2", "babel-polyfill": "^6.9.1", "babel-preset-es2015": "^6.1.2", "babel-preset-react": "^6.11.1", "babel-preset-react-native-stage-0": "^1.0.1", "babel-preset-stage-0": "^6.1.2", "babel-preset-stage-3": "^6.11.0", "babylon": "^6.8.2", "cross-spawn-async": "^2.2.4", "minimatch": "^3.0.2", "react": "^15.1.0", "react-native": "^0.28.0", "react-native-accordion": "^1.0.0", "react-native-geocoder": "^0.4.2", "react-native-maps": "^0.6.0", "react-native-orientation": "^1.17.0", "react-native-svg": "^2.2.0", "react-native-vector-icons": "^2.0.3" }, "devdependencies": { "react-native-cli": "^1.0.0" } }
.babelrc:
{ "presets": [ "react", "es2015", "react-native-stage-0" ], "plugins": ["transform-async-to-generator", "transform-react-jsx"] }
react packager (full):
[5:02:27 pm] <start> building dependency graph [5:02:27 pm] <start> crawling file system [hot module replacement] server listening on /hot react packager ready. [5:02:29 pm] <end> crawling file system (2116ms) [5:02:29 pm] <start> building in-memory fs javascript [5:02:29 pm] <end> building in-memory fs javascript (143ms) [5:02:29 pm] <start> building in-memory fs assets [5:02:29 pm] <end> building in-memory fs assets (73ms) [5:02:29 pm] <start> building haste map [5:02:29 pm] <start> building (deprecated) asset map [5:02:29 pm] <end> building (deprecated) asset map (86ms) [5:02:30 pm] <end> building haste map (254ms) [5:02:30 pm] <end> building dependency graph (2596ms) [5:02:30 pm] <start> request:/index.ios.bundle?platform=ios&dev=true [5:02:30 pm] <start> find dependencies transformed 1/1 (100%) [5:02:30 pm] <end> find dependencies (13ms) [5:02:30 pm] <end> request:/index.ios.bundle?platform=ios&dev=true (50ms)
Comments
Post a Comment