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

Example with on demand import don't work #36

Open
Dementir opened this issue Jul 28, 2019 · 3 comments
Open

Example with on demand import don't work #36

Dementir opened this issue Jul 28, 2019 · 3 comments

Comments

@Dementir
Copy link

Hi,
I use code from example

<template>
  <div id="app">
    <vue-glide>
      <vue-glide-slide
        v-for="i in 10"
        :key="i">
        Slide {{ i }}
      </vue-glide-slide>
    </vue-glide>
  </div>
</template>

<script>
import VueGlide from 'vue-glide-js/src/components/Glide.vue'
import VueGlideSlide from 'vue-glide-js/src/components/GlideSlide.vue'

export default {
  components: {
    [VueGlide.name]: VueGlide,
    [VueGlideSlide.name]: VueGlideSlide
  }
}
</script>

And i see this

If i do global import, everything is ok

Browser info:

  • Chrome 75.0.3770.142
  • Opera 62.0.3331.72
@AlecWeekes
Copy link

I can also confirm this issue is occuring for me too. Regardless of Browser, the global import resolves the issue but that's not the ideal solution for us.

@the94air
Copy link

the94air commented Oct 3, 2019

@Dementir @AlecWeekes I think this isn't a package issue:

<template>
  <vue-glide>
    <vue-glide-slide>
      <!-- ... -->
    </vue-glide-slide>
    <vue-glide-slide>
      <!-- ... -->
    </vue-glide-slide>
    <vue-glide-slide>
      <!-- ... -->
    </vue-glide-slide>
  </vue-glide>
</template>

<script>
  import { Glide, GlideSlide } from 'vue-glide-js';
  import 'vue-glide-js/dist/vue-glide.css';

  export default {
    components: {
        'vue-glide': Glide,
        'vue-glide-slide': GlideSlide
    }
  }
</script>

@siolfyr
Copy link

siolfyr commented Aug 11, 2021

@antonreshetov Looks like the current readme.md doesn't have the CSS import for the OnDemand usage.

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

4 participants