Could you provide more information about tsconfig.base.json
, tsconfig.app.json
and tsconfig.editor.json
? This info could help resolve your issue.
Maybe I had similar ussue: VSCode showed the same error, but my code worked. I fixed that problem by adding tsconfig.editor.json
to the app folder.
Also, it would be helpful, if you provide info about index.ts file in @shared
lib
Docs about aliases in NX: https://nx.dev/blog/managing-ts-packages-in-monorepos#fixing-relative-imports-with-typescript-path-aliases