question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Error with swiper

See original GitHub issue

Describe the bug

Cannot build with swiper

Reproduction

Create a fresh vitejs app and add swiper

yarn add swiper

Go to App.vue and simply load and call swiper

import { Swiper } from 'swiper'
console.log(Swiper)

Try to build

No Error with yarn dev

It’s apparently not a swiper issue

System Info

  • required vite version: 1.0.0-rc4
  • required Operating System: Linux Ubuntu
  • required Node version: 12.11.1

Logs (Optional if provided reproduction)

Screen Shot 2020-08-11 at 11 49 25 AM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stephanedemottecommented, Aug 25, 2020

Ive try with yarn clear cache it’s seem to work now.

Thanks for all !!

1reaction
Frulkocommented, Aug 24, 2020

It seems to be a new error, I will check that later today.

I will keep you inform about any tips which could help you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Can't resolve 'swiper/react' - Stack Overflow
Create React App doesn't support pure ESM packages yet. It is still possible to use Swiper (7.2.
Read more >
swiper - npm
Swiper. Swiper - is the free and most modern mobile touch slider with hardware accelerated transitions and amazing native behavior.
Read more >
Set Up Swiper.js for React Slides [Example] - Ionic Framework
We recommend Swiper.js if you need a modern touch slider component. ... Not using Create React App? You can import the Swiper CSS...
Read more >
Swiper is not defined Elementor 3.5 - WordPress.org
Hi, I updated to Elementor 3.5 and got an error for swiper. Swiper.js not load. ... Please make sure that all of your...
Read more >
Swiper Changelog
a11y: fix JS error "swiper.a11y is undefined" (#6226) (02c1502); touch focusableElements jumps ... build-config: allow to custom modules by process.env.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found