vue-agile icon indicating copy to clipboard operation
vue-agile copied to clipboard

vue-agile doesn't work on my vue3

Open bhojkamal opened this issue 2 years ago • 4 comments

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 avatar Mar 02 '22 11:03 bhojkamal

any update on this?

luismabenitez avatar Apr 22 '22 09:04 luismabenitez

With Vite i guess ?

GlincheAutomobiles avatar Jun 01 '22 14:06 GlincheAutomobiles

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>

cimchd avatar Jun 28 '22 10:06 cimchd

With Vite i guess ?

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

moongodhax avatar Jul 20 '22 12:07 moongodhax