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

Absolute imports not supported with typescript #5637

Closed
alexwendte opened this issue Oct 31, 2018 · 1 comment
Closed

Absolute imports not supported with typescript #5637

alexwendte opened this issue Oct 31, 2018 · 1 comment

Comments

@alexwendte
Copy link

Is this a bug report?

No

Description

I love the fact that we are get to use typescript out of the box! I was just curious what is holding CRA back from allowing the baseUrl to be set in the tsconfig.json so that absolute imports can happen. I opened an issue so discussion about this could happen.

@ianschmitz
Copy link
Contributor

Hey there. Unfortunately it's not quite as simple as setting baseUrl in tsconfig.json, as the rest of our tool chain also has to support it as well (webpack, jest as examples). We're exploring supporting absolute imports in CRA over at #5118. If you have any thoughts feel free to add them over there!

@lock lock bot locked and limited conversation to collaborators Jan 9, 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