Skip to main content
Sonny_Lazuardi_Hermawan
New Member
March 1, 2023
Question

figma.importStyleByKeyAsync throwing Error: Unable to create style

  • March 1, 2023
  • 24 replies
  • 1629 views

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
March 24, 2023

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

Active Member
April 2, 2023

Any news from Figma?

James_Yang
Figmate
Figmate
April 2, 2023

“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
April 1, 2024

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?