TypeScript Type Error with Overridden Components in FileUploader Using AWS Amplify UI #6275
Open
4 tasks done
Labels
bug
Something isn't working
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: