Skip to content
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

error.tsx:15 Error: async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding 'use client' to a module that was originally written for the server. #81

Open
haiderrazavaluelabs opened this issue Feb 28, 2024 · 0 comments

Comments

@haiderrazavaluelabs
Copy link

This error is occurring after 4-5 days ago.
I have integrated Revolut-Checkout in my NextJS web app.
It was working fine 4-5 days ago with payments done, test cards working successfully.
The integration I have done is based on official revolut documentation,
With no new changes done, I tested the revolut pay today in my app and suddenly on button mount the button shows for 1 s and error occurrs in console:
error.tsx:15 Error: async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding 'use client' to a module that was originally written for the server.
I am indeed not using async/await for Revolut related code anyways but not sure why this error is happenning recently.
Any help on this would be highly appreciated.
Thanks and Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant