histoire-dev / histoire

⚡ Fast and beautiful interactive component playgrounds, powered by Vite

Home Page:https://histoire.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to access window variables

jxh150535011 opened this issue · comments

Describe the bug

My application will load certain modules that will attempt to access the window.fetch variable (throw an error if the window.fetch variable does not exist).
This will cause the module to throw an exception directly during the "Error while collecting story" phase.
Is there any configuration for me to add polyfill or other troubleshooting methods to prevent this module from executing on the node side for the current issue

Reproduction

/

System Info

node 16.x

Used Package Manager

pnpm

Validations