unibest icon indicating copy to clipboard operation
unibest copied to clipboard

怎么配置才能在import的时候省略组件的拓展名

Open berial opened this issue 7 months ago • 0 comments

Bug report(问题描述)

import自定义组件的时候eslint报错

Steps to reproduce(问题复现步骤)

import AppCard from '@/components/app-card' // .vue' 不写.vue就会提示错误

Missing file extension for "@/components/app-card"eslintimport/extensions 找不到模块“@/components/app-card”或其相应的类型声明。ts-plugin(2307)

Screenshot or Gif(截图或动态图)

minimal reproduction(最小可还原代码)

System Info

npx envinfo --system --npmPackages vue --binaries --browsers

执行上面命令,将结果贴下面

berial avatar Jul 01 '24 08:07 berial