![](/img/trans.png)
[英]How to add aws-Amplify authentication to react-native typescript project template
[英]React Native Web crashes with aws-amplify
我在我的應用程序中為 iOS、Android 和 Web 使用 aws-amplify,但是當我導入 aws-amplify
import 'aws-amplify';
Android 和 iOS 工作正常,但 web 應用程序崩潰並顯示錯誤消息:
Failed to compile
Can't reexport the named export 'BREAK' from non EcmaScript module (only default export is available)
有誰知道這個問題的解決方案?
我相信對於您的 web 應用程序客戶端,您應該像這樣導入:
import Amplify from 'aws-amplify';
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.