DEV Community

Discussion on: Storybook setup with Vite, Svelte Kit & Tailwind CSS

Collapse
koder profile image
Ben Woodward • Edited on

It seems this is now unnecessary, and all you need to do is the following:

  • Add .storybook/pakckage.json containing:
{
    "type": "commonjs"
}
Enter fullscreen mode Exit fullscreen mode
  • change line 12 of .storybook/main.js from

"preprocess": require("../svelte.config.js").preprocess

to:

"preprocess": import("../svelte.config.js").preprocess

source: github.com/storybookjs/storybook/i...

Collapse
chranditho profile image
Christoph • Edited on

this worked for me. thanks for the comment!
you do have a typo in ./storybook/package.json