You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@zhangyuang I updated to 6.8.1 and still seeing this, I guess, related error: ReferenceError: HTMLElement is not defined.
This comes up in a mocha/enzyme test.
Check that this is really a bug
Reproduction link
https://github.com/zhangyuang/swiper-bug-isnode
Bug description
The judge is very inaccurate, in server side render, framework self or users maybe mock a window object in server side is frequent
Maybe there should judge at a deeper level。for example,
window.document
,window.document.documentElement
orwindow.screen
Expected Behavior
No response
Actual Behavior
No response
Swiper version
6.8.0
Platform/Target and Browser Versions
macos
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: