Can't resolve 'reactstrap' when using github master branch
Issue description
- components:
reactstrap - reactstrap version
#master - import method
umd/csj/es - react version
#16.3.2 - bootstrap version
#4.1.1
What is happening?
Module not found: Can't resolve 'reactstrap' when using github master branch
What should be happening?
should not error just like the released version
Steps to reproduce issue
- create-react-app
- yarn add https://github.com/reactstrap/reactstrap.git#master
- call any component from reactstrap
Error message in console
Failed to compile.
./src/App.js
Module not found: Can't resolve 'reactstrap' in '/home/user/reactstrapbeta/src'
If you add from github, you only have src files. You must "build" dist files from src files in order to use it.
This is correct, reactstrap doesn't check in dist files. You can either build the dist or reference the /src/index directly and instruct your build/bundling tool to babel the contents of it (not 100% sure if that last thing will work, but it seems like it would based on how some other component libraries get away with not having a dist at all)
npm install --save reactstrap react react-dom
Thank you, it helped me npm install --save reactstrap react react-dom