In setting up my Angular workspace, I have 3 libraries and one application (with more to be added in the future). This is how the TypeScript paths are configured:
"paths": {
"@lib/a/*": [
"projects/libs/a/*",
"projects/libs/a"
],
"@lib/a": [
"dist/a/*",
"dist/a"
],
"@lib/b/*": [
"projects/libs/b/*",
"projects/libs/b"
],
"@lib/b": [
"dist/b/*",
"dist/b"
],
"@lib/c/*": [
"projects/libs/c/*",
"projects/libs/c"
],
"@lib/c": [
"dist/c/*",
"dist/c"
],
}
Although everything builds successfully, live reload does not work when running ng serve
.
I attempted a different path setup that initially worked, but then I encountered an error saying Unable to reference...
, resulting in the libraries no longer building.
Can anyone suggest why this may be happening?