Hi Figma Team,
I am writing to report a critical issue with the code generation feature for React. There is a persistent compatibility/import error being generated in the code (specifically failing to resolve "motion/react" in Vite).
Because of this specific React connection issue, the AI attempted to resolve the error multiple times in a loop. As a result, it consumed all of my available AI credits, and the error still persists.
To keep my website running, I had to completely revert to a previous version. However, this means I am now entirely blocked. If I try to make any new changes or updates to the page, the system triggers the exact same React error, fails to compile, and unfairly consumes more credits without applying the updates.
Summary of the impact:
-
Bug: Generated code fails with Vite internal server errors regarding
motion/react. -
Consequence: AI attempts to fix it drained 100% of my credits without success.
-
Current state: Blocked. I cannot update my design without losing more credits to the same error.
Could you please investigate this code generation bug? Additionally, I would appreciate it if you could refund/restore the credits that were lost due to this automated system failure so I can continue my work once it's fixed.
Thank you for your time and help,
