Why does Visual Studio Code can only find some of the exports coming from @acme/ui? #1157
-
Some examples: I'm kinda confused on why it does since it's all in the same dir. |
Beta Was this translation helpful? Give feedback.
Answered by
juliusmarminge
Aug 22, 2024
Replies: 1 comment 2 replies
-
This is due to how typescript handles wildcard exports condition. it wont try to scan it preemptively due to performance reasons, so any exports not yet in the program will be unknown to typescript (hence also vscode auto import) when it's in the program you will get auato-import of it which is probably what's happening for you |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
j-fdion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is due to how typescript handles wildcard exports condition. it wont try to scan it preemptively due to performance reasons, so any exports not yet in the program will be unknown to typescript (hence also vscode auto import)
when it's in the program you will get auato-import of it which is probably what's happening for you