#Path Alias in a Monorepo

3 messages · Page 1 of 1 (latest)

lavish stratus
#

Hey i want to create a path alias for a lib in a nx monorepo. I get the suggestion to import the component but not from the alias. I have set the alias in root tsconfig.base.ts. The lib that exports the component extends it so it should suggest the alias but it doesnt and i dont know why

"baseUrl": "./",
"paths": {
    "@shared": ["libs/shared-code/src/index.ts"]
}
strong cedar
lavish stratus
#

Thank you, that did it