figma / code-connect

A tool for connecting your design system components in code with your design system in Figma
MIT License
490 stars 45 forks source link

Error: Failed to upload to Figma #9

Closed og2t closed 1 month ago

og2t commented 1 month ago

Hi,

Great stuff!

I am trying this but I got:

Failed to upload to Figma (ERR_BAD_REQUEST): 403 Invalid scope(s): files:read. This endpoint requires the file_code_connect:write scope

Is this the account/permissions issue or something else? Thanks!

Screenshot 2024-04-17 at 14 58 52
lucoel commented 1 month ago

Make sure that your personal access token has write permissions for the Code Connect scope.

Screenshot 2024-04-17 at 15 14 54

I also got stuck on that for a moment yesterday. Also had to reload the Home tab so that the settings would even show this option. 😀

og2t commented 1 month ago

That was it thanks @lucoel. Would be good to update the docs with that screenshot in the token section 😊

FEliuyg commented 5 days ago

@lucoel why i did not see code connect in personal access token?how can i do to see this?

image
FEliuyg commented 5 days ago

sorry, my account is not Organization account!