storybookjs / addon-designs

A Storybook addon that embeds Figma, websites, or images in the addon panel.
https://storybookjs.github.io/addon-designs
MIT License
869 stars 73 forks source link

Error when trying to use figspec. #211

Closed stefann01 closed 1 year ago

stefann01 commented 1 year ago

I am trying to integrate figma in my storybook. It is working fine with the key figma, but when I switch to figspec I get the following error: image

My parameter object shape is the following:

Primary.parameters = {
  design: {
    type: "figspec",
    url: "....",
    accessToken: "....."
  }
}
stefann01 commented 1 year ago

Turns out that my design needed to be in a frame, it was in a section and that was the issue.