Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Adding typescript tougher than expected #137

Open
edPratt opened this issue Apr 26, 2019 · 1 comment
Open

Adding typescript tougher than expected #137

edPratt opened this issue Apr 26, 2019 · 1 comment

Comments

@edPratt
Copy link

edPratt commented Apr 26, 2019

So I'm adding typescript to my clone of this repo for a side project, and I figured that since "this project uses create-react-app" that I could follow the very simple steps here to add typescript to an already existing app created with create-react-app, but it didn't "just work". Does anyone have any tips here? I then explored ejecting the app and manually adding typescript support through webpack etc. but that seems to be a bigger project than I'm willing to take on at the moment unless I know that there are no other options.

@edPratt edPratt changed the title Adding typescript tougher than expecte Adding typescript tougher than expected Apr 26, 2019
@marko-hologram
Copy link

I know this response is way way too late probably, but looking at the URL for CRA you provided, it says:

Note: this feature is available with [email protected] and higher.

This project uses react-scripts 1.1.1. So the first step would be to at least update to 2.1.0 (or better yet 3.x since that's the latest one).

I'm sure this link below can help you, at least as a first step.

https://reactjs.org/blog/2018/10/01/create-react-app-v2.html#updating-a-project-to-create-react-app-20

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