-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Creating a TypeScript app with --typescript option does not work #5853
Comments
Your local |
Hi! Please run If not, run After doing this, it will work as expected. |
Thanks @miraage & @brunolemos. Turns out that I did not have create-react-app installed in global. Somehow I thought that it was not required when using Thanks for your help. |
@nareshbhatia it's not required, but sometimes it ends up using an existing version on your machine instead of the newest one |
Ah, I see. Thanks for clarifying, @brunolemos. |
Is this a bug report?
Yes
Did you try recovering your dependencies?
N/A
Which terms did you search for in User Guide?
TypeScript
Environment
Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
Binaries:
Node: 11.2.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 70.0.3538.102
Firefox: 60.0.2
Safari: 12.0.1
npmPackages:
react: ^16.6.3 => 16.6.3
react-dom: ^16.6.3 => 16.6.3
react-scripts: 2.1.1 => 2.1.1
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce
(Write your steps here:)
Expected Behavior
A TypeScript app is created with
.tsx
filesActual Behavior
An ES6 app is created with
.js
filesReproducible Demo
N/A
The text was updated successfully, but these errors were encountered: