figma-html icon indicating copy to clipboard operation
figma-html copied to clipboard

Auto Layout Error

Open resultsux opened this issue 2 years ago • 4 comments

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

resultsux avatar Jun 07 '22 16:06 resultsux

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

samijaber avatar Jun 07 '22 19:06 samijaber

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.

NathanMinns avatar Jul 11 '22 17:07 NathanMinns

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: @.***>

resultsux avatar Jul 13 '22 15:07 resultsux

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

Right now it marks everything with the layout errors

kkharji avatar Jul 22 '22 11:07 kkharji