axetroy / react-download

react component for click and then download the specify content file.
https://axetroy.github.io/react-download/
MIT License
36 stars 8 forks source link

Can't resolve 'proptypes' #7

Closed maliDzony closed 6 years ago

maliDzony commented 6 years ago

Hey :) there is a problem with proptypes

in ./node_modules/@axetroy/react-download/lib/react-download.js
Module not found: Error: Can't resolve 'proptypes' in '/Users/Projects/storybook/node_modules/@axetroy/react-download/lib'

but if I change require("proptypes")) to require("prop-types")); in /lib/reactDownload it works

I think it's more common to use "prop-types" lib then "proptypes"

btw, useful component!

luanfonceca commented 6 years ago

I am facing the same issue right now.

axetroy commented 6 years ago

I am sorry about this.

Fix this in the new version