storybook-addon-xd-designs
storybook-addon-xd-designs copied to clipboard
Invalid config type
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
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
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?