Due to bundling differences between Vite (used for Dara) and Webpack (used for Storybook currently), running Storybook requires two manual changes:
- In
./src/shared/graph-layout/worker/client.ts
inLayoutWorker
constructor, swap out the line instantiating the worker. Refer to the comment there. - In
package.json
, remove the"type": "module"
line.
These are temporary measures until we upgrade Storybook and migrate to storybook's Vite builder.