Coder Social home page Coder Social logo

Comments (11)

coddicat avatar coddicat commented on September 25, 2024

@skmbr thanks, i am looking right now

from vue-pinch-scroll-zoom.

skmbr avatar skmbr commented on September 25, 2024

Thank you!

from vue-pinch-scroll-zoom.

coddicat avatar coddicat commented on September 25, 2024

@skmbr fixed, I have just updated package. plz install the newest 4.2.2, and let me know if it works?

from vue-pinch-scroll-zoom.

coddicat avatar coddicat commented on September 25, 2024

@skmbr and plz note that you need to set
:width="…"
:height="…"
These required properties

from vue-pinch-scroll-zoom.

skmbr avatar skmbr commented on September 25, 2024

Ok... that sorted the original error, now I get this in the console:

image

from vue-pinch-scroll-zoom.

coddicat avatar coddicat commented on September 25, 2024

@skmbr Please provide your code

from vue-pinch-scroll-zoom.

skmbr avatar skmbr commented on September 25, 2024

As in my original post, but with height and width added:

<template>

  <PinchScrollZoom width="200" height="200">
    <img src="/test.png"/>
  </PinchScrollZoom>

</template>


<script setup>
import PinchScrollZoom from '@coddicat/vue-pinch-scroll-zoom'
</script>

from vue-pinch-scroll-zoom.

skmbr avatar skmbr commented on September 25, 2024

If I replace my main App.vue with the above code I get slightly less errors:

image

from vue-pinch-scroll-zoom.

coddicat avatar coddicat commented on September 25, 2024

@skmbr I mean - how do you use your component?
where did you put it? If you can provide your entire project it will be easier to figure out

from vue-pinch-scroll-zoom.

skmbr avatar skmbr commented on September 25, 2024

Can't share the entire project, but I'll try and spin up a new Quasar project tomorrow and see if it still does it with that!

from vue-pinch-scroll-zoom.

skmbr avatar skmbr commented on September 25, 2024

So I can't say I exactly understand this, but with the help of this SO post...

https://stackoverflow.com/questions/71063992/when-importing-self-made-vue-3-library-into-vue-3-project-uncaught-typeerror

... and setting this in my Vite config:

viteConf.resolve.dedupe = ['vue']

I do now have it working! 🥳

from vue-pinch-scroll-zoom.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.