You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, sorry I was on a little vacation from my github, I don't know why you are getting this error, perhaps you can tell me a bit about your setup, how you installed react-bootstrap and react-bootstrap-typescript.
@christhomas To reduce size of app, instead of doing import Button from 'react-bootstrap' we can do import Button from 'react-bootstrap/lib/Button'. But the TSD are made using react-bootstrap/src/Button so error pops out Module not found: Error: Cannot resolve module 'react-bootstrap/src/Button'.
Now on installing 'react-bootstrap' there is no src folder in node_modules/react-bootstrap so it says Module not found. So changing react-bootstrap/src to react-bootstrap/lib does the job. Do you want me to make a pull request for this?
Activity
christhomas commentedon Mar 7, 2017
Hi, sorry I was on a little vacation from my github, I don't know why you are getting this error, perhaps you can tell me a bit about your setup, how you installed react-bootstrap and react-bootstrap-typescript.
as much info as possible would be useful, thanks!
iamsaksham commentedon Apr 8, 2017
@christhomas To reduce size of app, instead of doing
import Button from 'react-bootstrap'
we can doimport Button from 'react-bootstrap/lib/Button'
. But the TSD are made usingreact-bootstrap/src/Button
so error pops outModule not found: Error: Cannot resolve module 'react-bootstrap/src/Button'
.Now on installing 'react-bootstrap' there is no src folder in node_modules/react-bootstrap so it says Module not found. So changing react-bootstrap/src to react-bootstrap/lib does the job. Do you want me to make a pull request for this?
christhomas commentedon Apr 11, 2017
yes, please make a pull request, thanks!