Comments (5)
Works great now, thanks! I think we can close this.
from react-pan-zoom.
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.
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.
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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-pan-zoom.