title: Nuxt TypeScript error: nuxt:typescript Cannot find module '@/my-module'
body: <p>I have setup Nuxt with TypeScript using the instructions from <a href="https://typescript.nuxt.org" rel="noreferrer">https://typescript.nuxt.org</a>. The transition was pretty seamless and ok, except that I can't get rid of this error that <code>nuxt:typescript</code> "Cannot find module", which obviously is a false-positive.</p>
  
  <p>My imports look like this:</p>
  
  <pre><code>import InputField from '@/components/InputField.vue'
  </code></pre>
  
  <p>I have tried with <code>~/</code> and without the <code>.vue</code> extension. Nothing works.</p>
  
  <p>My <code>tsconfig.json</code> looks like this:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "esnext",
      "module": "esnext",
      "moduleResolution": "node",
      "lib": ["esnext", "esnext.asynciterable", "dom"],
      "esModuleInterop": true,
      "allowJs": true,
      "sourceMap": true,
      "strict": true,
      "noEmit": true,
      "baseUrl": ".",
      "paths": {
        "~/*": ["src/*"],
        "~*": ["src/*"],
        "@/*": ["src/*"]
      },
      "types": ["@types/node", "@nuxt/types"]
    },
    "exclude": ["node_modules"]
  }
  </code></pre>
  
  <p>And I have this object in my <code>nuxt.config.js</code>:</p>
  
  <pre><code>typescript: {
    typeCheck: {
      eslint: true,
      vue: true
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/FCOb1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FCOb1.png" alt="Error example"></a></p>