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
Can someone assist in guiding me in the right direction to solve an issue I’m encountering?
The issue might be related to vite-plugin-svelte, but it only occurs when starting Storybook, so I’m posting my issue here first.
When running yarn run dev, everything works fine. However, as soon as I run yarn run storybook, I keep encountering the following issue.
info => Serving static files from /var/www/html/node_modules/@chromatic-com/storybook/assets at /addon-visual-tests-assets
info => Starting manager..
info => Starting preview..
=> Failed to build the preview
TypeError: Cannot set properties of undefined (setting 'filter')
at Array.map (<anonymous>)
at resolveConfig (file://./node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49086:53)
at async _createServer (file://./node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:38329:18)
at async Module.start (./node_modules/@storybook/builder-vite/dist/index.js:84:5578)
at async storybookDevServer (./node_modules/storybook/dist/core-server/index.cjs:36795:79)
at async buildOrThrow (./node_modules/storybook/dist/core-server/index.cjs:35407:12)
at async buildDevStandalone (./node_modules/storybook/dist/core-server/index.cjs:38034:78)
at async withTelemetry (./node_modules/storybook/dist/core-server/index.cjs:36157:12)
It might be relevant to mention that I'm trying to install Storybook into a Laravel application running on Laravel Sail.
The issue also occurs when attempting to install Storybook on a fresh installation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Can someone assist in guiding me in the right direction to solve an issue I’m encountering?
The issue might be related to
vite-plugin-svelte
, but it only occurs when starting Storybook, so I’m posting my issue here first.When running
yarn run dev
, everything works fine. However, as soon as I runyarn run storybook
, I keep encountering the following issue.It might be relevant to mention that I'm trying to install Storybook into a Laravel application running on Laravel Sail.
The issue also occurs when attempting to install Storybook on a fresh installation.
Additional information
vite.config.js
.storybook/main.ts
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions