Install typescript
Unanswered
Patterdale Terrier posted this in #help-forum
Patterdale TerrierOP
Hi, please i have an issue
There is an old project NextJS built with Javascript that i want to convert to typescript. I see this is the docs https://nextjs.org/docs/app/getting-started/installation#set-up-typescript but when i change a file name to
There is an old project NextJS built with Javascript that i want to convert to typescript. I see this is the docs https://nextjs.org/docs/app/getting-started/installation#set-up-typescript but when i change a file name to
.ts or create a new .ts file and run the dev server, it doesnt automatically installed typescript or the tsconfig.json file...3 Replies
@Patterdale Terrier Hi, please i have an issue
There is an old project NextJS built with Javascript that i want to convert to typescript. I see this is the docs https://nextjs.org/docs/app/getting-started/installation#set-up-typescript but when i change a file name to `.ts` or create a new `.ts` file and run the dev server, it doesnt automatically installed typescript or the tsconfig.json file...
migrating whole projects from js to ts is pretty hard IMO. If I would be you, I would create a new project using the typescript installer and then you got everything ready for typescript. Then use AI to let it transfer all the code. Depending on the project size you are done in like 15 minutes ^^
Patterdale TerrierOP
Ohh oops.. I eventually got it working, and I already started migrating it gradually
lol