Open
Description
- Code Connect CLI version - 1.2.2
- Operating system - macOS Sonoma 14.5
- Code connect - Compose
Using config file:
{
"codeConnect": {
"parser": "compose",
"gradleWrapperPath": "..",
"include": [
"path to doc file which have example of using compose component"
]
}
}
Using command:
figma connect publish --token my_token
Doc File:
@FigmaConnect(url = "url to ui component on figma")
class MyComponentDoc {
@Composable
fun MyComponentSnippet() {
MyComponent(
MyComponentData(
myComponentType = MyComponent.A.ordinal,
myComponentItems = mutableStateListOf(
MyComponentItem("Abc"),
MyComponentItem("Abcd"),
MyComponentItem("Abcde"),
MyComponentItem("Abc"),
MyComponentItem("Abcdef"),
),
),
) {}
}
}
Figma Connect for compose not working on macOS
Config file found, parsing /sytem_path_to_android_project using specified include globs
Running parser: ./gradlew -p . parseCodeConnect -PfilePath=tmp/figma-code-connect-parser-io.json.tmp -q
Error returned from parser: Validation error: Required at "docs"; Required at "messages". Try re-running the command with --verbose for more information.