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

Add compilerOptions.paths support #9406

Open
ihardlight opened this issue Aug 3, 2020 · 1 comment · May be fixed by #10014
Open

Add compilerOptions.paths support #9406

ihardlight opened this issue Aug 3, 2020 · 1 comment · May be fixed by #10014

Comments

@ihardlight
Copy link

Is your proposal related to a problem?

React scripts can not build app with custom relative paths as
compilerOptions: { "baseUrl": "./", "paths": { "@/*": ["src/*"], "~/*": ["../*"] } }
Error message: compilerOptions.paths must not be set (aliased imports are not supported)

Describe the solution you'd like

Using configuration from tsconfig file for aliases

@Admiralfeb
Copy link

Also related, when I've been running in react-scripts 3.4.3, it's been wiping paths from my tsconfig rather than crashing with a message. That's unacceptable.

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

Successfully merging a pull request may close this issue.

2 participants