cod*_*ers 6 react-native react-native-web expo
当我尝试在 Web 模式下运行应用程序时,我收到了下面提到的错误。
/node_modules/expo/build/Notifications/Notifications.js
Module not found: Can't resolve 'react-native-web/dist/exports/AsyncStorage' in '/Users/i322865/node_modules/expo/build/Notifications'
Run Code Online (Sandbox Code Playgroud)
我正在使用最新的博览会(0.36,我在使用 0.35 版本时也遇到了同样的错误)并响应本机 web 0.12.0-rc.1。请帮助解决此问题,如果您需要更多详细信息,请告诉我。
此模块 (AsyncStorage) 在react-native-web上不可用:^0.12。
如果你需要使用 AsyncStorage 你可以使用版本:"react-native-web": "0.11.7",
PS:您可以在此问题上查看有关该主题的更新:https : //github.com/necolas/react-native-web/issues/1515
官方立场是:
Use 0.11 until the community packages add web support.
They've known this was coming for 9 months react-native-community/async-storage#52
Run Code Online (Sandbox Code Playgroud)
问候
| 归档时间: |
|
| 查看次数: |
3010 次 |
| 最近记录: |