I installed ts-loader into my nuxt.js app like so:
npm install ts-loader typescript
Then I tell vue-loader to use ts-loader for the script part:
<script lang="ts">
What I get is an error message:
error TS18002: The 'files' list in config file 'tsconfig.json' is empty.
or
error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["node_modules","bower
_components","jspm_packages"]'.
if I create the tsconfig.json file.
How can I configure typescript inside .vue files?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c97">#c97</a>)</em></sub></div>