Open thehrz opened 7 months ago
Cannot auto import types added to the dirs config.
dirs
This seems to be because includeTypes is set to false when calling scanExports.
includeTypes
false
scanExports
https://github.com/unplugin/unplugin-auto-import/blob/128d050107af1b57ffe2fe2b32018e4110042bde/src/core/ctx.ts#L33
https://stackblitz.com/edit/typeserror?file=src%2Fmain.ts
System: OS: Linux 6.7 Arch Linux CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13400F Memory: 49.13 GB / 62.64 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 18.18.2 - /usr/bin/node npm: 10.4.0 - /usr/bin/npm Browsers: Chromium: 121.0.6167.160
npm
Start a new pull request in StackBlitz Codeflow.
See also #61
Is anyone tracking on that?
Describe the bug
Cannot auto import types added to the
dirs
config.This seems to be because
includeTypes
is set tofalse
when callingscanExports
.https://github.com/unplugin/unplugin-auto-import/blob/128d050107af1b57ffe2fe2b32018e4110042bde/src/core/ctx.ts#L33
Reproduction
https://stackblitz.com/edit/typeserror?file=src%2Fmain.ts
System Info
Used Package Manager
npm
Validations