-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Create React App does not work with Typescript template #8717
Comments
I'm also having the same error. |
Looks like it's caused by version 25.2.0 of
|
The related issue in the pretty-format repo: jestjs/jest#9703 |
I updated typescript to 3.8.3 and works. maybe some Issues related to the compiler? |
Updating typescript worked for me too, thx @hlebon |
Related QA: https://stackoverflow.com/a/60856373/11872246 |
The issue is now well known and resolved. Thanks everyone! 😄 |
Describe the bug
On a fresh project setup via yarn and create-react-app, when I specific the typescript template, The project fails to build.
Did you try recovering your dependencies?
I have updated to the latest stable version of Yarn 1 (
1.22.4
) and latest version of create-react-app ([email protected]
)Which terms did you search for in User Guide?
Searched any references to typescript and the error as it presents itself.
Environment
Occurs both on Mac OS Catalina and WSL
Steps to reproduce
yarn create react-app project --template typescript
cd project
yarn run build
error also present on
yarn start
Expected behavior
Build success.
Actual behavior
Reproducible demo
Project that CRA generates from
yarn create react-app project --template typescript
https://github.com/MatWrz/cra-project-issue
The text was updated successfully, but these errors were encountered: