You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am runing v3. Is there any e.g. Vite specific things I would need to incorporate?
Eg 1:
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import { DesignTokenDocBlock } from 'storybook-design-token/dist/doc-blocks';
<Meta title="Design Tokens/Colors" />
# Colors
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Pariatur qui ut
beatae nam molestiae cum doloremque fugit nihil, vitae modi recusandae culpa
odit facere eum vel reiciendis eius repellat, totam aperiam. Molestiae error
voluptatibus et neque vel libero, harum nam quibusdam mollitia, sapiente rerum
iste modi sit deserunt? Officiis, quaerat!
<DesignTokenDocBlock categoryName="Colors" />
## As cards
<DesignTokenDocBlock categoryName="Colors" viewType="card" />
Error in terminal:
[vite] Internal server error: Missing "./dist/doc-blocks" specifier in "storybook-design-token" package
Error in browser:
Failed to fetch dynamically imported module: http://localhost:6006/.storybook/Tokens/colors.stories.mdx
The text was updated successfully, but these errors were encountered:
Do these errors also occur when the import path in the colors.stories.mdx file is like this?: import { DesignTokenDocBlock } from 'storybook-design-token'
I seem to be running into an issue when trying to use the DocBlock for the design tokens as described in these instances:
https://github.com/UX-and-I/storybook-design-token/blob/v1/demo/src/design-tokens/colors.stories.mdx
https://storybook.js.org/addons/storybook-design-token
https://github.com/UX-and-I/storybook-design-token/blob/v3/addon/src/stories/Introduction.mdx
I am runing v3. Is there any e.g. Vite specific things I would need to incorporate?
Eg 1:
Error in terminal:
Error in browser:
The text was updated successfully, but these errors were encountered: