...So the package I am trying to use is react-lazy-load. But, I don't want to use the npm packaged files, I want to use the github files.
...On NPM there is no jsx file, only js files. But on the same project on github there is the main .jsx file...
...I have tried this:
...npm install --save npm install --save https://github.com/loktar00/react-lazy-load/tarball/master
...Which puts all the files into my node modules folder. But then when I try to import the jsx component using import LazyLoad from 'react-lazy-load';
...I get this error:
...Uncaught Error: Cannot find module 'react-lazy-load'
...Is there something I can do to fix this? Thoughts?
via Daltron
No comments:
Post a Comment