Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt-swiper is not support ssr:false, Is it a bug? #123

Open
lizyChy0329 opened this issue Apr 24, 2024 · 2 comments
Open

nuxt-swiper is not support ssr:false, Is it a bug? #123

lizyChy0329 opened this issue Apr 24, 2024 · 2 comments

Comments

@lizyChy0329
Copy link

when I set ssr: false in nuxt.config.ts, CI show tips:

[error] Nuxt Build Error: [vite]: Rollup failed to resolve import "swiper/css" from "virtual:nuxt:/builds/mfex/ssr-source/goodtime/.nuxt/css.mjs".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

util I import swiper/vue instead of nuxt-swiper

@cpreston321
Copy link
Owner

@lizy0329-biubiubiu please trying using the swiper elements branch on v2.

Docs: https://github.com/cpreston321/nuxt-swiper/tree/feat/elements?tab=readme-ov-file#nuxt-swiper

Install: #109

Please let me know if that helps. v1 will soon be deprecated.

@STY1997
Copy link

STY1997 commented Jul 10, 2024

@lizy0329-biubiubiu please trying using the swiper elements branch on v2.

Docs: https://github.com/cpreston321/nuxt-swiper/tree/feat/elements?tab=readme-ov-file#nuxt-swiper

Install: #109

Please let me know if that helps. v1 will soon be deprecated.

Hi, does "v1 will soon be deprecated" mean that we have another v2.x.x nuxt-swiper which supports swiper element (webComponents)? Shall I use this library or I might wait you to publish the v2 version?

Currently, I am struggling in setting up the swiper element with Nuxt3... :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants