Typescript not recognising internal package references across monorepo #9997
Unanswered
russell-knight
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I have a monorepo with a few apps under
apps/
, as well as a common internal package underpackages/
. When I open my internal package and try to view the references of an exported member, I get no results. However, if I do agrep
for the exported member I can see it is in use in variousapps
. If I open one of the files that contains this reference and then try to view references on the definition once more in my internal package, it now is able to find the reference.Each of my apps have a
tsconfig.json
file in the root as does my internal package.I'd like to understand what's happening here. Why are the references not found until the file containing the reference is open? Is there a way to "fix" this so that I can view the references without opening the file containing it first?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions