Closed eric-burel closed 2 years ago
Yea so you'd have to configure the storybook webpack config.
https://storybook.js.org/docs/react/configure/overview
There's a number of guides on poly filling Node fallbacks manually, or you could add this plugin:
Thanks for the hint I will try that, however what is the reason for the need for polyfills in the first place? I'd like to avoid them as much as possible if they are not strictly needed
Right now they're needed because the shadow-dom serializer that prints to the console uses JSDOM. Perhaps there's a different way to serialize the DOM since this could be a blocker for people running the test suite on a browser environment.
In fact, as I'm looking at it, I think a normal DOMParser may do the trick here...
@eric-burel give v1.6.2
a whirl and let me know if that fixes it for you. If not feel free to reopen this.
Perfect, much thanks for the very quicky fix!
Hi,
Sorry in advance for the vague issue because I couldn't build a repro and the error logs are hard to decipher, but here it is:
Samples of the error log:
Any idea where to start?