I get this error :
document is not defined
Hint:
Browser APIs are not available on the server.
If the code is in a framework component, try to access these objects after rendering using lifecycle methods or use a `client:only` directive to make the component exclusively run on the client.
See https://docs.astro.build/en/guides/troubleshooting/#document-or-window-is-not-defined for more information.
File:
C:\Users..\website\node_modules\swiper\shared\swiper-core.mjs:3681:7
Code:
3680 | if (typeof el === 'string') {
3681 | el = document.querySelector(el);
| ^
3682 | }
3683 | if (!el) {
3684 | return false;
Stacktrace:
ReferenceError: document is not defined
at Swiper.mount (file:///C:/Users/../website/node_modules/swiper/shared/swiper-core.mjs:3681:7)
at Swiper.init (file:///C:/Users/../website/node_modules/swiper/shared/swiper-core.mjs:3726:28)
at new Swiper (file:///C:/Users/../website/node_modules/swiper/shared/swiper-core.mjs:3427:14)