I am venturing into the world of Typescript with Nuxt (version 2.6.1) for the first time. After creating a new project using create-nuxt-app, I followed the official guide for Typescript Support.
npx create-nuxt-app my-first-app
cd my-first-app
npm install -D @nuxt/typescript
echo "{}" > tsconfig.json
npm run dev
The Typescript guide provides additional information:
INFO: Including the tsconfig.json file in your project indicates to Nuxt.js that you are working on a TypeScript project.
This file will receive default values automatically when you run the nuxt command for the first time.
Issue:
- The tsconfig.json file does not get updated
- When I create a simple '/pages/test.ts' file, it is not transpiled to a .js file