[求助]vue文件引用ts时没有类型推断, 并且一直提示错误 #7426
Unanswered
zhaozhongyu
asked this question in
Help/Questions
Replies: 2 comments
-
Please provide a minimal reproduction to reopen the issue. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
-
确定了, 只要在tsconfig.json中包含了includes就会有问题
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Vue version
3.2.31
Link to minimal reproduction
无
Steps to reproduce
我的eslint配置是
我的代码如下, 运行是正常的, 但是没有对应的类型推断, ts提示 未从源文件“/Users/zhaozhongyu/code/write-pc/src/renderer/utils/fetch.ts”生成输出文件“/Users/zhaozhongyu/code/write-pc/src/renderer/utils/fetch.d.ts”。
What is expected?
按理说应该直接有对应的类型推断, 不需要我手写一个d.ts类型文件
What is actually happening?
除非手写一个d.ts类型文件, 否则不会有类型推断.
System Info
No response
Any additional comments?
No response
Beta Was this translation helpful? Give feedback.
All reactions