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

file not created error #1306

Open
karimemad09 opened this issue Aug 15, 2024 · 3 comments
Open

file not created error #1306

karimemad09 opened this issue Aug 15, 2024 · 3 comments
Labels

Comments

@karimemad09
Copy link

Hello
It's my first time trying a style dictionary after exporting my JSON file from the Figma design token plugin. When I try to build it, I get this error.
Well, where is the problem right now? Also, do you recommend any export plugin to export Figma variables and work excellently with Style Dictionary?

Screenshot 2024-08-15 145836

@soundharsaminathan
Copy link

maybe directory is not mapped correctly in config. Update the issue with your config & file structure.

@karimemad09
Copy link
Author

maybe directory is not mapped correctly in config. Update the issue with your config & file structure.

I thought that either, so how can I map it correctly? also, are there any blog talks about how I can build the file structure to match the default config file?

@jorenbroekema
Copy link
Collaborator

So this warning occurs either because:

  • your "source" property in your SD config is not matching the files, so you have no tokens to process
  • in the format config you have applied filters and they're filtering all the tokens out, so there's no more tokens to output to the file because the array of tokens is empty.

It's not clear from your issue which of the two it is because you haven't posted your SD config file and we don't know what your filesystem looks like, where the tokens files are located relative to where you are running SD

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

No branches or pull requests

3 participants