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

How to setup in Nuxt 3? #253

Open
iamdagy opened this issue Jul 18, 2022 · 2 comments
Open

How to setup in Nuxt 3? #253

iamdagy opened this issue Jul 18, 2022 · 2 comments

Comments

@iamdagy
Copy link

iamdagy commented Jul 18, 2022

Hi,
is there a way to use cue-slick-carousel in Nuxt 3? I've been trying for a while without success.

The error I'm getting is:

[nitro] [dev] [unhandledRejection] TypeError: Invalid value used as weak map key

my current setup is:

in plugins/vueSlickCarousel.js

import {defineNuxtPlugin} from "#app";
import VueSlickCarousel from "vue-slick-carousel";
import 'vue-slick-carousel/dist/vue-slick-carousel-theme.css'
import 'vue-slick-carousel/dist/vue-slick-carousel.css'

export default defineNuxtPlugin(nuxtApp => {
    // Doing something with nuxtApp
    nuxtApp.vueApp.use(VueSlickCarousel)
}) ```

# in Index.vue
1
2
3
@iamdagy
Copy link
Author

iamdagy commented Jul 18, 2022

Also if import it directly in a vue component, I get another error:
[nuxt] [request error] Cannot read properties of undefined (reading 'prevArrow')

@Javierieh
Copy link

Looks like only Vue 2 is supported, this wont work with nuxt 3 as nuxt 3 uses vue 3

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

2 participants