问题描述

我在ts文件中导入刚才安装好的axios,报错了,报错信息如下:

解决方法

按下键盘ctrl+shift+p,在弹出的窗口输入

typescript

选择Select TypeScript Version

回车后,选择Workspace的即可


报错解除

Cannot find module ‘axios;‘ or its corresponding type declarations.ts(2307)相关推荐

  1. 【VSCode - Vetur 插件报错】Cannot find module ‘XXX‘ or its corresponding type declarations.Vetur(2307)

    Cannot find module '@/utils/request' or its corresponding type declarations.Vetur... 原因分析 解决方案 原因分析 ...

  2. webstorm报错:TS2307: Cannot find module ‘./App.vue‘ or its corresponding type declarations

    错误描述 在使用ts后,webstrom报以下错误 TS2307: Cannot find module './App.vue' or its corresponding type declarati ...

  3. Cannot find module ‘../views/HomeView.vue‘ or its corresponding type declarations.ts

    problem Cannot find module '-/views/HomeView.vue' or its corresponding type declarations.ts 版本:vue3 ...

  4. Cannot find module ‘./index.less‘ or its corresponding type declarations

    现象 原因分析 这个错误只和typescript有关系,是由于ts默认情况下不认识less文件. 解决办法 步骤一 在根目录下创建externals.d.ts文件,并填写入以下内容: declare ...

  5. vue+ts项目中import图片时报错Cannot find module ‘xxx‘ or its corresponding type declarations

    TS项目中import图片时报错Cannot find module 'xxx' or its corresponding type declarations 在vue+ts项目中使用import的形 ...

  6. Cannot find module ... or its corresponding type declarations.(ts2307)

    vue3+ts项目出现这样的编译提示,红色下划线 Cannot find module ... or its corresponding type declarations.(ts2307) 解决方法 ...

  7. 安装vite框架,报错“Cannot find module ‘./App.vue‘ or its corresponding type declaration” 问题解决方法

    代码编辑器:vscode ,使用vue3,所以安装了 Volar 插件,可以使 vue 代码高亮显示,不同颜色区分代码块,以及语法错误提示等 提示:如果使用的是vue2,则使用 Vetur 插件:使用 ...

  8. vue3 setup + ts + vite 项目问题解决:Cannot find module ... or its corresponding type declarations.(ts2307)

    昨日我尝试使用vue3 setup + ts + vite进行vue3项目的实现,遇到此问题: Cannot find module ... or its corresponding type dec ...

  9. TS2307: Cannot find module ‘@/assets/home/banner1.webp‘ or its corresponding type declarations.

    最近在用typescript + webpack 重构项目,每次打包都会出现下面报错: 第一次以为是这个路径别名的问题,改为相对路径还是报错 尝试过把项目中使用这段图片路径的img标签注释掉,重新打包 ...

最新文章

  1. 计算机硬件技术 实验的软件,计算机硬件技术基础软件实验讲义.doc
  2. Delphi连接AutoCAD_计算任意线条的长度宏的嵌套
  3. 从开源自治到微服务云化,用这剂良药提升微服务幸福感
  4. iPhone 12机模曝光:继续刘海屏、回归直面边框
  5. 分散mysql的写入压力_缓解MySQL写入压力和主从延迟的尝试
  6. Volley源码学习2--Error类
  7. ios 添加导航栏视图_iOS进度栏(进度视图)
  8. 智能问答系统CQA调研--工业界
  9. python Pytesseract 动态验证码图片识别
  10. db2去除字段值的空格_sql trim()函数去掉两头空格
  11. Iphone版同步推闪退问题
  12. 【图像处理】基于matlab GUI多功能图像处理系统【含Matlab源码 1876期】
  13. pytion基础语句之数据类型
  14. 央视点赞!实景三维校园,最暖心的毕业礼...
  15. 海康摄像头实时显示与字符叠加详解
  16. 一文看懂语音技术商业化逻辑:对品牌意味着什么 | 综述
  17. 1949-2020年各省全要素生产率(年度)
  18. 西南大学计算机考研808真题分享
  19. abb机器人负载配置设定_ABB机器人配置Profinet网络配置流程.pdf
  20. 写一本书作者到底能拿到多少稿酬?

热门文章

  1. Android微信h5分享,H5网页实现微信分享功能
  2. Lnc2Catlas:肿瘤相关的lncRNA数据库
  3. Android——CInit源码分析
  4. iTranslate for Mac(苹果专用翻译软件)
  5. linux 脚本裁剪内核,Linux 内核裁剪的自动化方法
  6. 在各大Linux发行版中如何安装Docker及设置加速器?
  7. win10系统使用clover时程序崩溃的解决
  8. DRP之旅第一站--DRP概览
  9. matlab多维数据分类,选择用于高维数据分类的特征
  10. OneNote桌面版偶然发现,不再是玄学的模糊搜索了