My use-case was a monorepo with 2 separate angular apps and one shared library. While I had path aliases for imports from the shared library so typescript would know where to find all relevant files, angular did not know to follow those aliased paths, prompting me with the confusing Unable to write a reference to {X} from {Y} error. The solution was to set rootDir to "../".
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I made an account on this website just so I could say Thank you!
Oh wow! Thank you !! I'm glad it still helps people! I would've thought those kind of issues were already fixed / improved :)
My use-case was a monorepo with 2 separate angular apps and one shared library. While I had path aliases for imports from the shared library so typescript would know where to find all relevant files, angular did not know to follow those aliased paths, prompting me with the confusing
Unable to write a reference to {X} from {Y}
error. The solution was to set rootDir to "../".