Closed
Description
As far as I can tell it somehow alligns with this PR on the Typescript project microsoft/TypeScript#42184
Versions
- nuxt: v2.15.0
- ts: 4.2
- node: v12.14.0
Reproduction
I just used the default nuxt ts starter template and stripped the nuxt-ts
command from npm run dev
and the nuxt/typescript-runtime
https://github.com/JulianMar/nuxt-ts-bug
Steps to reproduce
npm run dev
What is Expected?
No errors, this code works in nuxt 2.15.x with ts 4.1 check the 4.1 branch
What is actually happening?
ERROR ERROR in pages/index.vue:31:26 15:29:15
TS2691: An import path cannot end with a '.ts' extension. Consider importing '@/store/test.js' instead.
29 |
30 | <script lang="ts">
> 31 | import { testFunc } from '@/store/test.ts'
| ^^^^^^^^^^^^^^^^^
32 |
33 | testFunc()
34 |
Metadata
Metadata
Assignees
Labels
No labels