Skip to content

tds points to react-bootstrap/src instead of react-bootstrap/lib #10

@diegolaciar

Description

@diegolaciar

I get this err:

Module not found: Error: Cannot resolve module 'react-bootstrap/src/Button'

The path of the lib is node_modules/react-bootstrap/lib/Button

I'm doing something wrong or TSD need to be updated ?

Regards,

Activity

christhomas

christhomas commented on Mar 7, 2017

@christhomas
Contributor

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

iamsaksham commented on Apr 8, 2017

@iamsaksham
Contributor

@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?

christhomas

christhomas commented on Apr 11, 2017

@christhomas
Contributor

yes, please make a pull request, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @diegolaciar@christhomas@iamsaksham

        Issue actions

          tds points to react-bootstrap/src instead of react-bootstrap/lib · Issue #10 · react-bootstrap/react-bootstrap-typescript