-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native - Unable to resolve “@aws-amplify/ui/dist/style.css” #3053
Comments
Hi @dperconti, thanks for using AWS Amplify! It looks like you are using both Please follow this guide to pass a theme object to the authenticator component to customize styling. |
To use this with Expo, which allows Web and Android/iOS builds, I installed //aws-amplify-react.js
export * from "aws-amplify-react-native"; //aws-amplify-react.web.js
export * from "aws-amplify-react"; With this setup I just have to do Now, I just have to hope they have the same interfaces, haha. |
When I use aws-amplify-react and withAuthenticator in my react app. it throws the following error. Shouldn't it pick the CSS automatically? when I manually add the CSS path into my webpack css-loader, it works. However, when I build my app in the AWS Codebuild it throws the same error again. Please help. |
The same for me. |
To be clear, there is an issue with importing |
Resolving issue as this is solved in version 3 of Amplify. Please review what @ericclemmons statement is above and please let us know if you are still experiencing this issue. Thanks! |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
** Which Category is your question related to? **
react-native
&@aws-amplify/ui
** What AWS Services are you utilizing? **
Amplify & Cognito
** Provide additional details e.g. code snippets **
I'm attempting to customize the AWS Amplify UI signin/signup process by following this article. Every time I import anything from aws-amplify-react I receive this error:
I've tried installing
@aws-amplify/ui
specifically, along with other combinations of aws-amplify versions. Here's the relevant part of my package.json:And the versions of the specific UI & auth that I've tried:
Here is the import statement:
Any help on resolving this issue is greatly appreciated.
The text was updated successfully, but these errors were encountered: