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
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.