【发布时间】:2021-02-13 07:17:12
【问题描述】:
我收到此错误:
C:/Users/Mobile/node_modules/@react-navigation/drawer/lib/module/views/ResourceSavingScene.js
Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens'.
在我能够进行登录身份验证之前,现在它显示 405 错误,我不知道这是否与此错误有关。我正在使用 react native expo 创建项目。
【问题讨论】:
-
你真的有一个repro,你在react-native中得到这个错误吗?关于web,如果你使用它,这个错误来自ts-loader,如果你使用babel-loader,这个错误就会消失
-
@satya164 我在 web.xml 中有这个错误。我应该如何使用 babel-loader?我什至不知道我使用的是 ts-loader 还是没有
-
@satya164 我已经看到了这个问题。 babel-plugin-react-native-web 还不够吗?我正在使用 react-app-rewired
-
你需要确保像评论中那样使用 babel-loader。
标签: reactjs react-native expo react-navigation yarnpkg