前端开发博客

  • 前端头条
  • Github趋势
  • 微信文章
  • WP巴士
  • 工作室
  • 我的公众号
  • 微信群
  • Github
前端头条 > 前端头条 > vue3+ts报错Cannot find module ‘@/views/XXX.vue‘ or its corresponding type declarations.

vue3+ts报错Cannot find module ‘@/views/XXX.vue‘ or its corresponding type declarations.

文章浏览阅读173次,点赞2次,收藏2次。报错原因:找不到模块@/views/xxx.vue。或其相应的类型声明。解决方法:在env.d.ts文件中添加以下代码。

文章来源
CSDN
发表时间
2024-01-30(1年前)
阅读次数
168
全文阅读:blog.csdn.net

扫码关注公众号获取最新文章,免费领取前端工程师必备资源

文章导航

vue中的vuex
React Hooks 详解之 useState

相关推荐

  • PostCss、Webpack中的file-loader、url-loader、asset module type
  • vue-type-check: Vue 模板中的 Typescript 类型检查
  • Type Classes in TypeScript
  • css选择class中的第一个怎么选?使用first-of-type?

最新头条

  • Vue 实现主题切换(明暗)
  • vueRouter(路由)
  • 3.从零开始学会Vue–{{生命周期,工程化,组件化}}
  • 基于Vue和NodeJs的摄影网站
  • Electron 客户端心跳定时任务调度库调研文档 – Node.js 任务调度库技术调研文档

RSS 前端博客

  • 20240721 前端开发日报
  • 20240720 前端开发日报
  • 20240719 前端开发日报
  • 20240719 前端开发周报
  • 20240718 前端开发日报
前端头条 > 前端头条 > vue3+ts报错Cannot find module ‘@/views/XXX.vue‘ or its corresponding type declarations.
  • 前端博客
  • 关于
  • 版权
  • 存档
  • 标签
  • 地图
©2016 前端头条 版权所有
 
50querys in 0.334 seconds.