BuilderIO / figma-html

Builder.io for Figma: AI generation, export to code, import from web
https://www.figma.com/community/plugin/747985167520967365
MIT License
3.13k stars 291 forks source link

Auto Layout Error #108

Open resultsux opened 2 years ago

resultsux commented 2 years ago

Describe the bug I have autolayout on the component, but the plugin keeps throwing errors saying I don't.

To Reproduce Steps to reproduce the behavior: 1.Select a component 2.Run plugin 3.Click "Generate Code"

Expected behavior I'd expect it to generate the react code/styling for the component Screen Shot 2022-06-07 at 11 17 59 AM

Additional context

samijaber commented 2 years ago

@resultsux Can you share a file containing the Figma design? Or a link to the Figma design?

NathanMinns commented 2 years ago

Hey @samijaber It looks like this is still an issue, preventing the plugin from running on most Figma files. The starkest example is trying to use the plugin on Figma's wireframe templates.

resultsux commented 2 years ago

Yes. You need to turn everything into components. I believe turned on auto layout. But that wasn’t enough. You must turn it into a component by right clicking on it and selecting create component. Try that and let me know what you happens.

On Wed, Jul 13, 2022 at 10:01 AM FindAFounder @.***> wrote:

Have you got the solution, I am facing the same

— Reply to this email directly, view it on GitHub https://github.com/BuilderIO/figma-html/issues/108#issuecomment-1183337259, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSLZYFNRDGFPI4ATJN6LHDVT3K6NANCNFSM5YDQVTOQ . You are receiving this because you were mentioned.Message ID: @.***>

kkharji commented 2 years ago

https://www.figma.com/file/AULqU413s2kLXGzG4yjE4p/PavBrandWebsite?node-id=28%3A62

Right now it marks everything with the layout errors