Skip to main content
Tomas Doherty
New Member
October 1, 2025
Question

Code connect snippets have imports that do not exist

  • October 1, 2025
  • 1 reply
  • 81 views

Some code connect snippets will include imports that do not exist:

import com.example.Component

SomeComposable()

The actual code connect file will look like this:

package com.exampleimport androidx.compose.runtime.Composableimport com.example.SomeThemeimport com.figma.code.connect.FigmaConnect@FigmaConnect("https://www.figma.com/design/something")private class SomeComposableDoc {    @Composable    fun Component() {        SomeComposable()    }}@AlarmPreviews@Composableprivate fun SomePreview() {    SomeTheme {        SomeComposableDoc().Component()    }}


It seems that it mistakes the method Component for an import. All of my connected classes use the same name for their composable method. 

This topic has been closed for replies.

1 reply

Tom Reem
Figmate
Figmate
October 8, 2025

Hey ​@Tomas Doherty — really appreciate you flagging this! I’m in touch with our engineering team, and we’d like to take a closer look at what’s happening.

To help us pinpoint the import issue, could you please fill out this secure form and include the following?

  1. the link to this Forum post for reference
  2. a link to the file where this is occurring
  3. “Can edit” access granted to support-share@figma.com for the affected file
  4. a short screen recording showing the issue in action (if possible).

Once we have that, our team can dig in and get this sorted out. Thanks so much for your help and patience while we investigate.