Closed AmberKrause closed 11 months ago
Hi @AmberKrause. Can you try updating to the newest version of Amplify CLI and running amplify pull
?
Transferring to Studio team for triage of UI Builder codegen behavior
Thank you for the suggestion! Updating the Amplify CLI from 12.5.0 to 12.8.2 resolved the issue! I will know next time to try this first! Thanks so much!
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Other
How is your app built?
Create React App
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
us-east-1
Please describe your bug.
When syncing recently created UI Library components from Amplify Studio, Amplify creates new files within src/ui-components that contain imports incompatible with the required packages, resulting in a "Module not found" error at compile time.
Here are the problematic imports (found in a data-bound Form component and in utils.js):
Sample error message:
I tried the following:
npm install
amplify pull
.What's the expected behaviour?
Amplify UI Library components should have consistency in dependencies on "@aws-amplify/ui-react" and "aws-amplify".
Help us reproduce the bug!
npm i @aws-amplify/ui-react aws-amplify
.Code Snippet
Package.json
Console log output
No response
Additional information and screenshots
No response