Skip to main content
Sonny_Lazuardi_Hermawan
New Member
Mar 1, 2023 9:57 AM UTC
Question

figma.importStyleByKeyAsync throwing Error: Unable to create style

This plugin API was working before, after today’s update we got this error

Error: Unable to create style

Any advice?

This topic has been closed for replies.

24 replies

Active Member
Mar 24, 2023 8:43 PM UTC

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

Active Member
Apr 2, 2023 7:44 PM UTC

Any news from Figma?

James_Yang
Figmate
Figmate
Apr 2, 2023 8:36 PM UTC

“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.

Bryan_Wong
New Member
Apr 1, 2024 8:23 PM UTC

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?