Fail to install
LuisFilipePedroso opened this issue · 12 comments
I tried to install it and I got the error that files doesn't not exit. So I went to the folder node_modules/@sandstreamdev/react-swipeable-list and I realised that the project was empty, just contains folders, but not the React app.
I also tried to install using yarn and neither the @sandstreamdev folder appeared into node_modules folder.
I can confirm the issue. It seems that the build result wasn't packaged and all the dist folder contents is gone:
https://diff.intrinsic.com/@sandstreamdev/react-swipeable-list/0.1.2/0.2.0
Fixed in release 0.2.1
It looks like np does not build before publishing - my bad. We need to update prepublish configuration.
@LuisFilipePedroso: Thank you for your report. Can you confirm if it is working for you now?
Hey there. I installed here using NPM and YARN and now I can install, but inside of the folder @sandstreamdev/react-swipeable-list just have the folder dist. Does not have a index.js file to import the files and then I can not import the component into my project.
@LuisFilipePedroso Could you inspect how you import the component? It should use main
/browser
/module
fields of package.json
to load an appropriate file based on your environment. In the dist
folder there should be react-swipeable-list.cjs.js
, react-swipeable-list.esm.js
and react-swipeable-list.umd.js
.
As there is no top-level index.js
file, please do not import from @sandstreamdev/react-swipeable-list/index.js
but rather @sandstreamdev/react-swipeable-list
to let node/other tools resolve it using the mentioned environment fields.
The basic example seems to work out of the box: https://codesandbox.io/embed/green-mountain-c27tu
@przemyslawzalewski sorry, I was importing the component in the wrong way, I fixed here and now is working correctly. Thank you.
@LuisFilipePedroso No need to be sorry :) You're welcome!
@all-contributors please add LuisFilipePedroso for bug
I've put up a pull request to add @LuisFilipePedroso! 🎉
@all-contributors please add przemyslawzalewski for maintenance
I've put up a pull request to add @przemyslawzalewski! 🎉