retyui / react-quick-pinch-zoom

A react component that providing multi-touch gestures for zooming and dragging on any DOM element.
https://react-quick-pinch-zoom.netlify.app/
310 stars 47 forks source link

Module not found: Can't resolve 'classnames' #5

Closed cnadolny2s closed 5 years ago

cnadolny2s commented 5 years ago
Failed to compile.

./node_modules/react-quick-pinch-zoom/dist/index.es.js
Module not found: Can't resolve 'classnames' in '...\node_modules\react-quick-pinch-zoom\dist'

I'm using your main example and immediatelly getting this error. Any idea how to quick fix this at least temporary? Fork and add classnames dependency?

retyui commented 5 years ago

Classname is a peer dependency!

https://github.com/retyui/react-quick-pinch-zoom/blob/a2f78cc5c876f526fb94e730a30fea2d4ce4737b/package.json#L6-L8

So it is meant that you need install separately

yarn add classnames
cnadolny2s commented 5 years ago

Figured it out myself, but thanks for your quick response.