Skip to content

Why does Visual Studio Code can only find some of the exports coming from @acme/ui? #1157

Answered by juliusmarminge
j-fdion asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@juliusmarminge
Comment options

@j-fdion
Comment options

Answer selected by j-fdion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants