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.

`swiper` Missing "./vue/swiper-vue.js" export

See original GitHub issue

Environment

Nuxt CLI v3.0.0-27251455.110b2b2 07:15:02 RootDir: C:\Users\Andy\Desktop\test\lombakativ 07:15:03 Nuxt project info: 07:15:03


  • Operating System: Windows_NT
  • Node Version: v16.11.0
  • Nuxt Version: 3.0.0-27251455.110b2b2
  • Package Manager: npm
  • Bundler: Vite
  • User Config: vite, build
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

fresh install , problem with only run dev…

 WARN  [SSR] Error transforming ./node_modules/swiper/vue/swiper-vue.js: Error: Missing "./vue/swiper-vue.js" export in "swiper" package                      07:18:15

✔ Vite server built in 2694ms                                                                                                                                 07:18:15
✔ Nitro built in 248 ms                                                                                                                                       07:18:16

 ERROR  [uncaughtException] r.writeLatin1String is not a function        

3.0.0-27246961.9d40a27 works good.

Reproduction

https://stackblitz.com/edit/github-ar5zza-xbrnjt?file=app.vue

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
pi0commented, Oct 25, 2021

I have managed to make a minimal reproduction of what happens:

https://stackblitz.com/edit/vite-gdnr9b?build.mjs&file=build.mjs

/cc @antfu Any clues what would be the root cause?

/cc @danielroe We need to change this workaround

2reactions
andysaycommented, Oct 25, 2021

@andysay you are right, now I only see the warning: WARN [SSR] Error transforming ./node_modules/swiper/swiper.min.css: Error: Missing "./swiper.min.css" export in "swiper" package but it’s working! for css u can add transpil nuxt config,

    build: {
        transpile: [ 'swiper' ] }

at last v nuxt, working with build and start mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use swiper/vue dependencies not found
i try default import as per example but: These dependencies were not found: @/swiper/css in ./node_modules/cache-loader/dist/cjs.js??ref-- ...
Read more >
No swiper.css · Issue #693 · surmon-china/vue ... - GitHub
No error when compile. What is actually happening? ERROR Failed to compile with 1 errors This dependency was not found: * swiper/css/swiper.
Read more >
Swiper Vue.js Components
Swiper Vue.js plugin is available only via NPM as a part of the main Swiper library: ... swiper/vue exports 2 components: Swiper and...
Read more >
vue-awesome-swiper - npm
Start using vue-awesome-swiper in your project by running `npm i ... it only re-exports swiper/vue , which means only functions of that ...
Read more >
vue-awesome-swiper - npm Package Health Analysis - Snyk
Looks like vue-awesome-swiper is missing a security policy. You can connect your project's repository to Snyk to stay up to date on security...
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