code-connect
code-connect copied to clipboard
`figma connect create` command give no matches found but `figma connect` works with same node_url
🧩 Environment
- Figma CLI:
1.3.3(npx figma -V/figma -V) - Node.js:
v22.14.0 - OS: macOS Sonoma 14.6
🛠️ Description
I'm exploring the Figma Code Connect feature and encountered an issue during setup with the figma connect create command.
Figma file URL: https://www.figma.com/design/somethingsomething/Test_code_connect
📁 UI Project Structure
my-ui-lib/
└── src/
├── atoms/
│ └── Avatar/
└── components/
└── someComponent/
└── figma.config.json
⚙️ figma.config.json
✅ What Works
When I run the following at the root level:
figma connect
It successfully fetches the components from the Figma file and allows me to match them with my UI library components.
❌ What Fails
Running the command:
figma connect create {same_node_url}
Returns:
No match found
same with
figma connect unpublish --node=NODE_URL
Even though the node URL used is the same.
🔐 Additional Notes
- The Figma token is exported and available as an environment variable.
🙏 Question
Is there any additional configuration or setup step required to make figma connect create correctly match the component?
Let me know if more details are needed. Thanks!