Git Product home page Git Product logo

Comments (5)

nsallis avatar nsallis commented on August 23, 2024 1

Works great now, thanks! I think we can close this.

from react-pan-zoom.

nsallis avatar nsallis commented on August 23, 2024

I'm seeing this too. Looks like the 0.0.2 release broke the import for some reason. @levaifelasticad if you don't care about disabling pan functionality, you can use v0.0.1. That appears to work still.

v0.0.2 appears to not have been correctly built, so it is missing the "dist" directory.

Also, make sure you are importing react-pan-zoom correctly. According the the readme, it should be imported as import ReactPanZoom from "@ajainarayanan/react-pan-zoom";

from react-pan-zoom.

levaifelasticad avatar levaifelasticad commented on August 23, 2024

I tried with both
add yarn react-pan-zoom
and
add yarn @ajainarayanan/react-pan-zoom.
If I use the second version, in node_modules missing the dist directory.
Otherwise, with first version I had those errors from above.

from react-pan-zoom.

nsallis avatar nsallis commented on August 23, 2024

yarn add react-pan-zoom will not add this package, it adds this: https://www.npmjs.com/package/react-pan-zoom, which is by a different author. If you add @ajainarayanan/react-pan-zoom, which is this package, then you will need to set the version in your package.json to 0.0.1, until @ajainarayanan rebuilds the npm package since v0.0.2 currently has no dist directory.

package.json:
"@ajainarayanan/react-pan-zoom": "0.0.1", ...

component/react file:
import ReactPanZoom from "@ajainarayanan/react-pan-zoom";

I expect the eslint issue is because you are trying to load the other package instead of this one. If it continues after switching to this package, then please post your eslint file and package.json.

from react-pan-zoom.

ajainarayanan avatar ajainarayanan commented on August 23, 2024

@levaifelasticad @nsallis I have published 0.0.3 with proper dist folder. Could you give it a try and let me know if that works?

from react-pan-zoom.

Related Issues (8)

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.