Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding using paths property of tsConfig #6201

Closed
Uma19 opened this issue Jan 15, 2019 · 3 comments
Closed

Regarding using paths property of tsConfig #6201

Uma19 opened this issue Jan 15, 2019 · 3 comments

Comments

@Uma19
Copy link

Uma19 commented Jan 15, 2019

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

@mrmckeb
Copy link
Contributor

mrmckeb commented Jan 15, 2019

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!

@mrmckeb mrmckeb closed this as completed Jan 15, 2019
@Uma19
Copy link
Author

Uma19 commented Jan 15, 2019

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

@mrmckeb
Copy link
Contributor

mrmckeb commented Jan 16, 2019

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.

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants