figma / code-connect

A tool for connecting your design system components in code with your design system in Figma
MIT License
979 stars 70 forks source link

Can't publish #213

Open daniel-clover opened 1 week ago

daniel-clover commented 1 week ago

Please provide:

Validating Code Connect files... Validation failed for Accordion (https://www.figma.com/file/kmbwdsjZdZyFFS9cgKdIaK/%5BComponent%5D-Accordion?type=design&node-id=1314-7246&mode=design&t=68ITt5K6DjcPrrZK-0): corresponding node is not a component or component set

I get the above error when I try to publish my first component. Does this mean the component in Figma isn't set up properly?

Thanks for your attention!

slees-figma commented 6 days ago

Hi @daniel-clover, it sounds like you might have a URL for a layer which isn't a component - I'd maybe start with clicking the link and double checking the highlighted layer is a component or component set (it should show the component icon in the layers sidepanel).

If this is the case you can get the correct link by right clicking the component you want to link and pressing "Copy link to selection".