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

fix: use modern build of storybook to fix unresolved promises and other issues caused by polyfills [6.0] #174

Merged
merged 3 commits into from
May 20, 2021

Conversation

dannyhw
Copy link
Member

@dannyhw dannyhw commented May 18, 2021

Issue: #167 #169 #55

should also fix #20 #160 #159

What I did

Updated dependencies and metro config. The latest storybook alpha includes a modern build without polyfills that we can make use of by using the resolverMainfields option in metro config.

resolverMainFields: ['sbmodern', 'main']

With this change all issues with polyfills from storybook/addons and client should be resolved.
Going forward we need to replace knobs with controls because knobs don't support this and will break.

How to test

In the example app I added a button under the button promise->finally story. If you press the "Do a promise" button and the app doesn't error then the problem is fixed.

@dannyhw dannyhw requested review from oblador, shilman and ndelangen May 18, 2021 13:56
@dannyhw dannyhw self-assigned this May 18, 2021
@dannyhw dannyhw changed the title fix: use modern build of storybook to fix unresolved promises and other issues caused by polyfills fix: use modern build of storybook to fix unresolved promises and other issues caused by polyfills [6.0] May 18, 2021
@dannyhw dannyhw added the 6.5 label May 18, 2021
@w0o
Copy link

w0o commented May 23, 2022

Hey @dannyhw,
this is an important fix myself an many will be thankful for and I wanna help test this. I tried (npm-) installing directly from git but as it doesn't include a dist/tarball I tried building it but hit some snags with Typescript errors across the example folders.

Any recommendation on how to test this code on a working project?
Any chance of seeing this released as part of a patch or new alpha/beta release for testing?

@dannyhw
Copy link
Member Author

dannyhw commented May 23, 2022

@w0o this is already part of the v6 beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants