[英]Aws Cognito with @aws-amplify/ui-react
I had tried to implement aws Cognito with react app.我曾尝试使用 react 应用程序实现 aws Cognito。 Everything was done according to documentation.一切都是根据文档完成的。 Now when I tried to run, am getting the below error现在,当我尝试运行时,出现以下错误
*./node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSKinesisFirehoseProvider.js *./node_modules/@aws-amplify/analytics/lib-esm/Providers/AWSKinesisFirehoseProvider.js
Module not found: Can't resolve '@aws-sdk/client-firehose' in 'C:\Users\Shehzab\test\ui\react-app\node_modules@aws-amplify\analytics\lib-esm\Providers'*找不到模块:无法解析“C:\Users\Shehzab\test\ui\react-app\node_modules@aws-amplify\analytics\lib-esm\Providers”中的“@aws-sdk/client-firehose”*
From the root of your project, try...从项目的根目录,尝试...
rm -fr node_modules package-lock.json && npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.