-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
HMR with RN Story of "..." named "..." already exists #3348
Comments
I noticed this very old issue in the react-native repo whis is the only other mention I have seen of |
I was able to find a work around for this by modding like so:
I'm going to try and work this up as a PR |
After a bit more digging, it would seem this can be closed. It turns out that the Metro bundler that the RN uses failed to implement That said, they have fixed this in version 0.29.0 It would appear that RN v0.55.0 which was released today, upgrades to metro 0.31, and should make it's way into tools like Expo and CRNA in the next week or so. I guess I'll just be patient... |
Thanks for digging into this @duro. This sounds like good news indeed! Unexpected benefit of refactoring the RN code to use this code path even though it didn't work at the time ;) |
The same error is still present in the latest version.
Storybook 3.4.0
|
I am still having this issue on react-native |
That's bizzare, because upgrading to 0.55 resolved this for me. I did have
to make sure all my build caches were cleaned, but can't think of anything
else that I had to do to resolve.
…On Thu, Apr 12, 2018 at 7:34 AM Federico Gonzalez ***@***.***> wrote:
I am still having this issue on react-native 0.55.2 and storybook 3.4.1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3348 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABE4I5sBCtV3bYXZ-G-t4mWwYW_SIyNks5tn2XugaJpZM4TFzdH>
.
|
I've attached source code to test - latest.zip |
The issue can be easily reproduced when |
I'm having the same issue. Did anyone ever figure out a solution other than not calling |
npx -p @storybook/cli sb init --use-npm --type react_native Also gives us 2
@shilman Could you clarify our workaround?
Edit: @deprecated YellowBox has been replaced with LogBox now ^ Edit: I've found since upgrading the above warning can now be removed (sample repo) |
If you are reporting a bug or requesting support, start here:
Bug or support request summary
I have reviewed issue #1581 but do not seem to be having the same problem mentioned there. I am certain that I have passed
module
to mystoriesOf
call.When HMR is enabled, and I save the file, I get an error:
Steps to reproduce
Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
Screenshots / Screencast / Code Snippets
Additional Info
One thing I noticed is that when I console.log out the
m
var here: https://github.com/storybooks/storybook/blob/master/lib/core/src/client/preview/client_api.js#L52The object looks like this:
So it does not have a
.dispose()
method. Is this a change in the HMR spec?The text was updated successfully, but these errors were encountered: