Skip to main content

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. 

Be the first to reply!