Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

vue-agile doesn't work on my vue3 #236

Open
bhojkamal opened this issue Mar 2, 2022 · 4 comments
Open

vue-agile doesn't work on my vue3 #236

bhojkamal opened this issue Mar 2, 2022 · 4 comments
Labels

Comments

@bhojkamal
Copy link

I'm using vue 3 with composition I tried to implement this package but it didn't worked for me.

On template I have this

<div v-if="banners">
    <agile>
      <div v-for="banner in banners" :key="banner.id">
        <img :src="banner.image" class="slide" :alt="banner.title" />
      </div>
    </agile>
  </div>

script like this

<script>
import axios from "axios";
import { ref } from "vue";
import { VueAgile } from "vue-agile";
export default {
  name: "home",
  components: {
    agile: VueAgile,
  },
  setup() {
    const banners = ref([]);
.
.
.
  },
};
</script>

If something wrong here, can you please suggest me?

@bhojkamal bhojkamal added the bug label Mar 2, 2022
@bhojkamal bhojkamal changed the title This doesn't work on vue3 vue-agile doesn't work on my vue3 Mar 4, 2022
@luismabenitez
Copy link

any update on this?

@GlincheAutomobiles
Copy link

With Vite i guess ?

@cimchd
Copy link

cimchd commented Jun 28, 2022

Same problem here. I get the following warning in the console:

runtime-core.esm-bundler.js:38 [Vue warn]: Component is missing template or render function. 
  at <Anonymous> 
  [...]

I have an es modules project with vue3 with script setup. This is how I tried to use it:

<template>
  <VueAgile>
    <div>Slide 1</div>
    <div>Slide 2</div>
  </VueAgile>
</template>

@moongodhax
Copy link

With Vite i guess ?

I faced the same problem as in post. I use vite. Does vite breaks something?

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

No branches or pull requests

4 participants