-
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
Getting error when implement to nextJs #1963
Comments
Hi @louiskhenghao, This seems related to: #2230. I am currently looking into how to fix this. I will send an update to this issue as soon as possible. |
I found a workaround here: vercel/next-plugins#267 (comment) |
Can confirm that when using the workaround, this issue does not occur |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems. |
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 |
Describe the bug
I've implemented aws-amplify to nextjs and it work just fine until i import aws-amplify-react, there is an error when i tried to load up the site and the error i getting was:
I was trying to fix the issue and unfortunately i have no luck. But i find out that If i goes to the files below and uncomment certain part of the code, the site will be loaded without any error but the styling is not reflected
/node_modules/aws-amplify-react/dist/Amplify-UI/Amplify-UI-Components-React.js
and uncommentrequire('@aws-amplify/ui/dist/style.css');
/node_modules/@aws-amplify/ui/dist/style.css
and uncomment/remove all the code inside.To Reproduce
Steps to reproduce the behavior:
aws-amplify-react
to nextjs projectExpected behavior
The site should render with nicely styling and running without error
Screenshots
Desktop (please complete the following information):
Additional context
the environment is under the version listed below:
The text was updated successfully, but these errors were encountered: