Skip to main content
Question

Build Plugin: Claude Sonnet4.6 LightningCSS compile error & blank preview

  • June 5, 2026
  • 1 reply
  • 3 views

Luca.M

Problem with Build plugin when generating B-end backend page: 1. Using model Claude Sonnet4.6, generated CSS syntax is incompatible with LightningCSS, which causes Vite compile error during code building. 2. After plugin auto fixes all errors and finishes generating 13 source files including route, sidebar and page components, the preview page stays completely blank and cannot render prototype. 3. This issue newly appears after Sonnet4.6 model update; previous model versions generate code without compile failure and preview works normally. Request: Optimize CSS output rules of Sonnet4.6 to avoid unsupported syntax for LightningCSS and fix blank preview bug.

1 reply

adamsmasher
Figmate

Hi, ​@Luca.M. Thanks for your post!

 

Seems like you’ve done a fair amount of troubleshooting on your end to narrow down what caused the compile errors during build. I have a few questions to both guide me with how to triage your feedback, but also help unblock you:

  • Was this something that happened repeatedly with different Make projects, or just this one where you had been using it with an older version of Sonnet?
  • Was Sonnet 4.6 unable to resolve the issue even when presented with the build errors caused by CSS syntax?
  • Have you tried switching to a different model to resolve the issue and move forward?
  • Would you be able to provide the specific CSS rules that it generates that are not compatible?

 

Thanks for answering those! Let me know if you have other questions, and let me know if you are still blocked in specific.