我想在我的React Native项目中添加babel-plugin-transform-optional-chaining,但是我遇到了以下错误:
error: bundling failed: TypeError: Cannot read property 'loose' of undefined
at _default (/home/user/project/node_modules/babel-plugin-transform-optional-chaining/lib/index.js:12:32)
我的 package.json 文件:
"devDependencies": {
"babel-jest": "21.2.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-optional-chaining": "^7.0.0-beta.3",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0"
},
有人在 React Native 项目中测试过这个 Babel 插件吗?
谢谢!