Skip to content
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

Cannot auto import types #474

Open
5 tasks done
Thehrz opened this issue Feb 19, 2024 · 2 comments
Open
5 tasks done

Cannot auto import types #474

Thehrz opened this issue Feb 19, 2024 · 2 comments

Comments

@Thehrz
Copy link

Thehrz commented Feb 19, 2024

Describe the bug

Cannot auto import types added to the dirs config.

This seems to be because includeTypes is set to false when calling scanExports.

return (await Promise.all(files.map(i => scanExports(i, false)))).flat()

Reproduction

https://stackblitz.com/edit/typeserror?file=src%2Fmain.ts

System Info

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

Used Package Manager

npm

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.
Copy link

stackblitz bot commented Feb 19, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@tryforceful
Copy link

See also #61

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

2 participants