code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

`figma connect create` command give no matches found but `figma connect` works with same node_url

Open mitul-birdeye opened this issue 7 months ago • 0 comments

🧩 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

Image

📁 UI Project Structure

my-ui-lib/
  └── src/
      ├── atoms/
      │   └── Avatar/
      └── components/
          └── someComponent/
  └── figma.config.json

⚙️ figma.config.json

Image

✅ 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.

Image

❌ 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.

Image

🔐 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!

mitul-birdeye avatar Jun 13 '25 04:06 mitul-birdeye