Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'bindings' #80

Open
dzjDaniel opened this issue Nov 20, 2018 · 1 comment
Open

Cannot read property 'bindings' #80

dzjDaniel opened this issue Nov 20, 2018 · 1 comment

Comments

@dzjDaniel
Copy link

用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"
}
}

  • antd-mobile 版本:
  • 浏览器 (或标明是 react-native) 及其版本:
  • 操作系统及其版本:
@itenceMgr
Copy link

我们也遇到相同的问题。好像是版本不匹配。但是不清楚是哪里冲突了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants