在expo小吃中实现firebase时出错(react native)



图像

我在将firebase导入我的expo小吃时遇到了这个错误,该小吃用于我的应用程序项目中的身份验证。有人能帮我吗?

问题出在babel身上:先试试这个:npm add @babel/runtime如果这不起作用,试着这样做:

as was mentioned above, looks like the presence of this property
watchFolders: [${__dirname}/../..],
in metro.config.js solves the problem. I have a monorepo and mobile app is one of packages, that is why I need ../..
BTW in my case, interopRequireDefault problem appears only when I make a release build with
react-native run-android --variant release
developing mode ( react-native run-android ) works fine even without metro.config.js file
Also, there is no problem if a project is not configured as Monorepo

参考:https://github.com/facebook/react-native/issues/27712

最新更新