Mrcdh技术博客 Mrcdh技术博客
首页
  • Html5
  • Javascript
  • Nodejs
  • Android
  • 微信公众号
  • 框架
  • Mysql
  • PHP
  • Python
  • Gulp
  • 其它
  • 网站
  • 资源
  • Vue资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

Mrcdh

立志于全桟开发
首页
  • Html5
  • Javascript
  • Nodejs
  • Android
  • 微信公众号
  • 框架
  • Mysql
  • PHP
  • Python
  • Gulp
  • 其它
  • 网站
  • 资源
  • Vue资源
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • Html5

  • JavaScript

  • Nodejs

  • express

  • Android

  • 微信公众号

  • 框架

  • 其他

    • Webstorm使用技巧
    • Webpack的基本使用
    • 常用正则表达式
    • typescript开发常见问题
      • import图片报错
  • selenium

  • Sequelize

  • 大前端
  • 其他
mrcdh
2022-04-28
目录

typescript开发常见问题

# import图片报错

TS2307: Cannot find module '@/assets/images/logo.png' or its corresponding type declaration

解决办法,在声明文件.d.ts中声明:

declare module '*.svg'
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.gif'
declare module '*.bmp'
declare module '*.tiff'
1
2
3
4
5
6
7
#typescript
上次更新: 2022/05/07, 13:05:00
常用正则表达式
基于Linux配置selenium环境

← 常用正则表达式 基于Linux配置selenium环境→

最近更新
01
pushjs浏览器通知插件
05-07
02
Express + Element-ui 实现图片&文件上传
04-29
03
vue常用eslint配置模板
04-28
更多文章>
Theme by Vdoing | Copyright © 2020-2022 Mrcdh | 苏ICP备2020058908号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式