figma.importStyleByKeyAsync throwing Error: Unable to create style

I also can’t load team style by ID.

Today is March 24, but it still doesn’t work

Any news from Figma?

“Failed to import style by key” is a different error from “Unable to create style”. Also, the style id is different from the key – importStyleByKeyAsync only accepts the latter.

If you are anyone is still getting the “Unable to create style” error for a style key you know to exist, feel free to DM me the relevant details (the style key and console output) and we can investigate.

Hi James, I am running into the same issue. I believe it is a result of this:

This error primarily comes up for older styles that have been moved to another file.

How do I fix this?