[BUG] VS code: Cannot export tokens from DSP package
I have installed the Adobe XD extension in VS code, created a new DSP package, added a few tokens and saved changes to export the tokens in CSS and JavaScript. I confirmed the installation of style-dictionary package locally and clicked Export tokens, but nothing exported and I got asked again to install the style-dictionary package.
I guess there is some issue in the extension, because when I install style-dictionary manually from npm, I can generate the tokens using command line without problems. But it's a workaround only.
Windows 10
VS code 1.50.1
Adobe XD extension 1.0.3
Just wanted to let you know that we released an update to the VS Code extension (v1.1.3) with fixes to the issue reported.
If you have a chance, please give it a try and let us know if it’s working for you now.
Thanks.
-
Cadot Michael commented
i'm sorry but i search a solution, i have posted on stackoverflow, but i have no response.
i have a fresh install of vscode in linux, i have installed styledictionnary by npm in dist directory.
Adobe XD plug has no errors but, i have not a css in return and the config.js is empty.
Do you have a idea?
Thanks for your jhelp.
ps: I have installed many vscode in windows (no problem), in linux fresh installation with npm, i have problem. -
Anonymous commented
Hello Martin,
I'm encountering the exact same issue, but when I try to manually generate token using command it throws error. It seems dsp imported from Adobe XD only has config.js, but style-dictionary needs config.json in order to export token. Can you share your steps?
Thank you and Best regards,
Bill Chen