8000 无法在 `interface` 中使用类型导入 · Issue #479 · unplugin/unplugin-auto-import · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

无法在 interface 中使用类型导入 #479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
WangJincheng4869 opened this issue Mar 21, 2024 · 3 comments
Closed
5 tasks done

无法在 interface 中使用类型导入 #479

WangJincheng4869 opened this issue Mar 21, 2024 · 3 comments

Comments

@WangJincheng4869
Copy link

Describe the bug

查看 use-hello-world/types.ts

image

Reproduction

https://github.com/WangJincheng4869/fanKuiWenJian/tree/main/packages/vite-auto-imports

System Info

System:
    OS: Windows 10 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 13.32 GB / 31.56 GB
  Binaries:
    Node: 20.11.1 - D:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - D:\Users\jcwang\AppData\Roaming\npm\yarn.CMD
    npm: 10.4.0 - D:\Users\jcwang\AppData\Roaming\npm\npm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.92)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@ilyaliao
Copy link
Contributor

Looks like the issue has been resolved.

@antfu antfu closed this as completed May 16, 2025
@WangJincheng4869
Copy link
Author
WangJincheng4869 commented May 16, 2025

对不起,问题貌似依旧存在,我已经更新这个demo中的插件版本,并提交了代码。

Image

@ilyaliao
Copy link
Contributor

对不起,问题貌似依旧存在,我已经更新这个demo中的插件版本,并提交了代码。

Image

Try setting composite to false.

https://github.com/WangJincheng4869/fanKuiWenJian/blob/d2cfa5df0e89b36c6bffc3955c1481e30da68dda/packages/vite-auto-imports/tsconfig.app.json#L6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0