cedricdelpoux / react-responsive-masonry

React responsive masonry component built with css flexbox
https://cedricdelpoux.github.io/react-responsive-masonry/
MIT License
377 stars 37 forks source link

Package is missing the lib/ folder #1

Closed florianpeninon closed 7 years ago

florianpeninon commented 7 years ago

I get an error when compiling with this package.

Error in ./src/App.js
Module not found: 'react-responsive-masonry' in ./.

After looking around I noticed that main in package.json is pointing toward nothing. I ran the build script to get the lib/ folder and now it's working fine.

cedricdelpoux commented 7 years ago

Hi, thank you for reporting this bug. Actually, I don't understand why the lib folder is missing. With these two npm scripts, it should work right ?

"build": "babel ./src --out-dir ./lib --source-maps -d ./lib",
"prepublish": "yarn run clean && yarn run build",
cedricdelpoux commented 7 years ago

@florianpnn it should be good with the release 1.2.2 ! Sorry for the delay