Open dzjDaniel opened 5 years ago
用RN init的初始项目接入的,run安卓的时候提示没有:babel-preset-react-native 包,install后默认安装的是4.0.1的版本,继续run就红屏报错: Loading dependency graph, done. error: bundling failed: TypeError: Cannot read property 'bindings' of null
附: { "name": "AntdDemo", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "antd-mobile-rn": "^2.3.1", "react": "16.6.1", "react-native": "0.57.5" }, "devDependencies": { "babel-jest": "23.6.0", "babel-preset-react-native": "4.0.1", "babel-plugin-import": "^1.11.0", "jest": "23.6.0", "metro-react-native-babel-preset": "0.49.2", "react-test-renderer": "16.6.1" }, "jest": { "preset": "react-native" } }
我们也遇到相同的问题。好像是版本不匹配。但是不清楚是哪里冲突了
用RN init的初始项目接入的,run安卓的时候提示没有:babel-preset-react-native 包,install后默认安装的是4.0.1的版本,继续run就红屏报错: Loading dependency graph, done. error: bundling failed: TypeError: Cannot read property 'bindings' of null
附: { "name": "AntdDemo", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "antd-mobile-rn": "^2.3.1", "react": "16.6.1", "react-native": "0.57.5" }, "devDependencies": { "babel-jest": "23.6.0", "babel-preset-react-native": "4.0.1", "babel-plugin-import": "^1.11.0", "jest": "23.6.0", "metro-react-native-babel-preset": "0.49.2", "react-test-renderer": "16.6.1" }, "jest": { "preset": "react-native" } }