storybook-addon-xd-designs icon indicating copy to clipboard operation
storybook-addon-xd-designs copied to clipboard

Invalid config type

Open stergosjk opened this issue 3 years ago • 2 comments

My code is as follows in a tsx story file. Using XD latest version 43.0.12.14

import { withXD } from 'storybook-addon-xd-designs'

storiesOf('My stories', module) .addDecorator(withXD) .add('My awesome story', () => <Button>Hello, World!</Button>, { design: { artboardUrl: 'https://xd.adobe.com/view/92ad7ac9-94b7-4213-bd64-4c82e8da7dad-c7fe/' } })

Error message: Invalid config type That design config is not valid. Please check the documentation

stergosjk avatar Sep 13 '21 04:09 stergosjk

I realise the format of the URL is not in the specified format that is in the examples but this is the only format XD is giving us when selecting Development

stergosjk avatar Sep 13 '21 05:09 stergosjk

In our experience, the XD document must have "public" in the url. You appear to be trying to share a document and what the storybook addon is looking for is a creative cloud library.

I also remember that the ending slash can be troublesome. Try it without it?

abarrows avatar Aug 11 '22 10:08 abarrows