Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIgma connect interactive setup does not appear #230

Open
mijnnaamisramon opened this issue Jan 14, 2025 · 1 comment
Open

FIgma connect interactive setup does not appear #230

mijnnaamisramon opened this issue Jan 14, 2025 · 1 comment

Comments

@mijnnaamisramon
Copy link

  • Code Connect CLI version: 1.2.4
  • Operating system: Windows
  • Node version: v22.3.0
  • React: 18.3.1
  • Next: 14.2.3

I just tried all the steps in https://www.figma.com/code-connect-docs/quickstart-guide/ in my new Next/React project.
But when I run npx figma connect --token=PERSONAL_ACCESS_TOKEN using my person access token in the root folder (or any other folder for that matter)I get this:

No config file found in D:\Git\Project, proceeding with default options Using "html" parser as package.json containing no other supported web frameworks was found in D:\Git\ Project. If this is incorrect, please check you are running Code Connect from your project root, or add a parserkey to your config file. See https://github.com/figma/code-connect for more information. HTML projects are currently not supported by Code Connect interactive setup

But it's a React project, and at this point the interactive setup should start as stated in the docs, which would ask for the parser. I have nothing to go with at this point. What am I doing wrong? :)

@ptomas-figma
Copy link
Collaborator

Hi @mijnnaamisramon could you share your package.json file? That's the file we're checking to infer the project parser to use.

Alternatively you can set the parser explicitly by creating a figma.config.json file in the folder and add parser: "react" to it (see the docs for more information)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants