1npx create-next-app --example with-typescript with-typescript-app
2# or
3yarn create next-app --example with-typescript with-typescript-app
4
1npx create-next-app --example with-typescript with-typescript-app
2# or
3yarn create next-app --example with-typescript with-typescript-app
1// create a tsconfig
2touch tsconfig.json
3
4// run command `npm run dev`
5npm run dev