Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite dep optimizer is causing build errors. #14

Open
mahoneycm opened this issue Aug 12, 2024 · 0 comments · May be fixed by #15
Open

Vite dep optimizer is causing build errors. #14

mahoneycm opened this issue Aug 12, 2024 · 0 comments · May be fixed by #15
Assignees

Comments

@mahoneycm
Copy link
Contributor

On pages that are importing add-ons from Storybook (like "welcome" and "creating stories") I would see this in the Storybook preview:

image

And I would see this error in the terminal:

The file does not exist at "/Users/cmahoney/web/bixal/storybook-rapid-prototyping/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/chunk-LBNUNAF7.js?v=699bb8d1" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to optimizeDeps.exclude.

@mahoneycm mahoneycm self-assigned this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant