Angular lib issue #10577
Unanswered
anastasiosBatalamas
asked this question in
Help
Angular lib issue
#10577
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hi Turbo team 👋,
I'm working in a monorepo setup using TurboRepo and Angular 20, and I'm running into a strange issue.
I have a shared UI library that contains components, enums, pipes, services, handlers, etc. Everything builds and runs fine — until I try to add a new handler (just a basic class). As soon as I do, I start getting a TypeScript error:
TS2307: Cannot find module '@instapos/ui' or its corresponding type declarations.
What's confusing is:
The library builds successfully
Other files from the same library are imported and work without any problems
The new file is properly exported from public-api.ts
The error only shows up after adding this new file — and only in some scenarios (like in dev mode or when using Turbo’s persistent tasks)
I'm not sure if it's related to how Turbo handles watch mode, incremental builds, or dependency graph caching.
Has anyone seen this behavior before? I'd really appreciate any help in figuring out what’s going wrong or how to properly structure this setup in Turbo + Angular.
this is also the whole set up of the lib if it helps

Thanks!
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions