componentFailedToParse error

Offen
#388 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Ruhig
Tech-Stack
swift, typescript
Bereich
cli, devtools

Rechercherichtung

Start with the CLI’s component parsing path and the Swift parser invoked by swift run --package-path CodeConnect figma-swift; the issue does not identify the relevant source files or a failing test. Reproduce the command with verbose output and inspect where the parser exits with code 1. Done means identifying the parsing failure and providing a way to debug or fix it; the issue gives no expected behavior or resolution.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

API question
  • Code Connect CLI version: 1.4.3
  • Operating system: mac OS Tahoe
npx figma connect create "https://www.figma.com/design/ourURL?node-id=12345%3A2586&m=dev" --token=xx --verbose
Config file found, parsing CodeConnect using specified include globs
Fetching component information from Figma...
Parsing response
Generating Code Connect files...
Directory enabled for swift run command
Found Code Connect Swift package at CodeConnect, building parser binary. This may take a few minutes if this is the first time you've run Code Connect.
Running parser: swift run --package-path /Users/janedoe/.../CodeConnect figma-swift
Building for debugging...
[0/3] Write swift-version--58304C5D6DBC2206.txt
Build of product 'figma-swift' complete! (0.27s)
Error: componentFailedToParse
Failed to create: Parser exited with code 1
Please raise any bugs or feedback at https://github.com/figma/code-connect/issues.

How do I debug this error?
Figma MCP can fetch the info about the component just fine.

Vorherrschende Sprache
TypeScript
Sterne
1.6k
Forks
126
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus figma/code-connect

Alle Issues in figma/code-connect

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.