-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Build: Fix sandbox running multiple versions of react #19156
Conversation
@tmeasday Another problem that I'm seeing with this scheme is that the file watching for the story index server breaks. changes to the linked stories don't trigger an index update. |
@shilman do you have an example of a failure that was happening with multiple react versions? |
@IanVS If you copy the React hooks story from this PR into
|
@shilman do we need to install |
Hmm, we definitely need to investigate this, that would be very annoying. |
@tmeasday See the CI failure |
@shilman
|
@tmeasday I'm not at my computer but I think there's also a dev failure that's only in vite. I'll report back later. |
@tmeasday holding off on this until we figure out the story index issue for linked stories |
I took a look at this. As far as I can tell reading the source, watchpack doesn't resolve internal symlinks when watching a directory. A solution is just to add each symlinked dir as a stories glob: This appears to work, although we'll have to go back to a more complex OTOH, changing it to a single glob kind of broke your original idea of being able to easily comment out different stories @shilman |
NOTE: We should replace |
Issue: N/A
Template stories were running multiple versions of react in react projects when referenced by relative path.
@tmeasday @IanVS any idea why this breaks in vite?
What I did
sandbox
scriptHow to test