Skip to content

Regarding using paths property of tsConfig #6201

Closed

Description

@Uma19

Is this a bug report?

No

Description of Bug

I am using "react-scripts-ts": "3.1.0" and in that I am trying to use paths property of tsconfig
in order to resolve my components
e.g "paths": {
"@coe/common/": ["/src/common/"]
}
with "baseUrl": "."

but its not working.
its giving me error as "could not able to resolve the components"
I am not sure whether I am doing something wrong or this is not available in "react-scripts-ts": "3.1.0"
can you please guide me for the same

Activity

  1. mrmckeb commented on Jan 15, 2019

    @mrmckeb
    Contributor

    Hi @Uma19, this is not currently supported by create-react-app.

    There is a PR (#6116) to add support for this that we hope to merge very soon.

    It looks like you're using react-scripts-ts, which is supported here: https://github.com/jpavon/react-scripts-ts

    I hope that helps!

  2. Uma19 commented on Jan 15, 2019

    @Uma19
    Author

    Actually I am using react-scripts-ts of "wmonk"
    and there I am not able to log any issue, that is the reason added the concern over here
    So is the same concept which is getting integrated in create-react-app ?
    https://facebook.github.io/create-react-app/docs/adding-typescript

  3. mrmckeb commented on Jan 16, 2019

    @mrmckeb
    Contributor

    Correct @Uma19, you can now use CRA with TypeScript without a third-party's scripts package, but there may be different levels of support for some TS features.

    You could consider moving across, and then we'd be able to offer more support.

  4. locked and limited conversation to collaborators on Jan 21, 2019
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

      Issue actions