Open SinaKarimi7 opened 3 months ago
Hi @SinaKarimi7 how do I reproduce at the given link?
Also note: the link referenced in this warning is not valid and leads to a 404: https://storybook.js.org/docs/8.0/migration-guide/#missing-viteconfigjs-file
This is the right one, possibly? https://storybook.js.org/docs/migration-guide/from-older-version#missing-viteconfigjs-file
But that page is not very helpful, it just links to https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#framework-specific-vite-plugins-have-to-be-explicitly-added
which itself seems to cover the required cases, but not in a "just do this to fix that warning" kind of way. It talks through adding framework plugins which sound like optional add-ons, not base features, leaving one wondering if you actually need to do it or not (since SB does run without it - will adding this file break me?)
Hi there! Thank you for opening this issue, but it has been marked as stale
because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!
How does one file a repro for a documentation issue?
Describe the bug
I have a project with React/TypeScript/Vite and I have added the Storybook for a while. Now I want to upgrade the dependencies and enter this command based on storybook documentation:
I just realized from the banner that the migration script was unable to locate the
vite.config.js
at the root of my project. This is accurate because I don't have a .js file. Instead, I have the TypeScript version of thevite.config
.As a user, I saw this banner and I assumed this file doesn't exist in my directory. So if this banner shows by default (no matter whether the user has the file or not) this is a UX/DX issue. Maybe it will be better to have a more clear description/content in this banner.
Reproduction link
https://stackblitz.com/edit/github-f4sm7n
Reproduction steps
No response
System
Additional context
I was using storybook version 8.1.1 and I got to this banner in the middle of running the upgrade script (
pnpm dlx storybook@latest upgrade
)But my
package.json
file was changed in the meantime.