This relative module was not found: ./index.vue?vue&type=script&lang=ts& in ./pages/index.vue

使用Nuxt脚手架创建typescript项目,npm run dev启动开发服务,报如下错误: This relative module was not found: ./index.vue?vue&type=script&lang=ts& in ./pages/index.vue 解决办法,升级依赖 @nuxt/typescript-runtime ,执行: yarn add @nuxt/typescript-runtime 升级到新版本 ^2.0.0 即可 我这边试了ok。 引用…