-
Notifications
You must be signed in to change notification settings - Fork 308
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
TypeScript Type Error with Overridden Components in FileUploader Using AWS Amplify UI #6275
Comments
Hello @yadokarization 👋 Thank you for opening this issue. This is appears to be an issue of compatibility between React 19 and the older version of Radix UI currently used by Amplify UI. We are aware of this issue and are currently working on a fix. For the time being, a workaround to mitigate this issue would be to use React 18. |
This was confirmed to be a compatibility issue between React 19 and the older version of Radix UI currently being used within Amplify UI. For the time being, we have rolled back our support of React 19 while we resolve this issue. |
Thank you for this information. |
@mattmogford-alcumus, we indeed reopened #6084 after (as @yadokarization suggested in the comment before yours). Please follow that issue for updates, but we'll provide a comment here too once that's been resolved and closed again. |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Storage
How is your app built?
Next.js
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
No response
Please describe your bug.
When deploying an application built with Next.js 15 and AWS Amplify UI components, I encounter a TypeScript type error. This issue occurs when using the FileUploader from @aws-amplify/ui-react-storage, where Container and DropZone have been overridden.
The primary error message is as follows:
Detailed steps for reproducing the error will be described later. If the issue is due to my implementation, I apologize for any inconvenience.
What's the expected behaviour?
No type errors.
Help us reproduce the bug!
Create a Next.js 15 application using the following command and answer all prompts with the default values (simply press Enter).
Install the necessary packages:
Here are the package versions I used when I encountered the issue:
Rewrite app/page.tsx as follows, based on the examples provided in the Amplify UI documentation:
Deploying to Amplify, then the following error occurs. The same error can also be seen in development environments such as VSCode:
Code Snippet
No response
Console log output
No response
Additional information and screenshots
During the process of addressing a bug in our project, I noticed an inconsistency with the
@types/react
versions that might be contributing to the issue. Below is the output from runningnpm ls @types/react
:As I am not very familiar with this issue, I cannot definitively say whether this inconsistency is the cause.
The text was updated successfully, but these errors were encountered: