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

React + TS build not working #1014

Closed
diegolameira opened this issue Jul 30, 2018 · 4 comments
Closed

React + TS build not working #1014

diegolameira opened this issue Jul 30, 2018 · 4 comments

Comments

@diegolameira
Copy link

diegolameira commented Jul 30, 2018

🐛 bug report

It's not possible to download and build React Typescript, just because of the wmonk/create-react-app-typescript recent changes.

Steps to reproduce:
1 - Create a React+TS sandbox
2 - Download it
3 - npm install & npm run build

Whats wrong?
1 - Failed to load tsconfig.json: Missing baseUrl in compilerOptions
2 - Cannot find "$PATH/tsconfig.prod.json" file.

Is there a related issue?
wmonk/create-react-app-typescript#322

Actually, to solve this I made 2 simple steps:
1 - compilerOptions.baseUrl = '.' > tsconfig.json
2 - { 'extends': './tsconfig.json' } > tsconfig.prod.json

Although the sandbox is already using the fixed version ("^2.13.0" which resolves to "2.16.0") there are still missing files.

@vitkon
Copy link

vitkon commented Nov 16, 2018

wmonk/create-react-app-typescript is out of date.
It'd be better to use the latest create-react-app my-app --typescript.
Is there a pull request for it?

@diegolameira
Copy link
Author

Man, I just sent on July, since then many things has changed. If some one is still having this issue and want to contribute go ahead.

@SaraVieira
Copy link
Contributor

SaraVieira commented Dec 11, 2019

I am doing spring cleaning of all the issues and I noticed we no longer have the error mentioned here as we are now using CRA

@OldManMeta
Copy link

It's mid 23 and I'm seeing this issue.......

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

Successfully merging a pull request may close this issue.

4 participants