Replies: 2 comments
-
This behavior highlights a gap between Nx's static analysis and NestJS's dynamic module system. It's important to manually declare dependencies in project.json to ensure proper detection and avoid build issues. Correct? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This could be fixed with this change f117119 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I've observed a issue with
NestJS
applications in anNx workspace
using TypeScript Workspaces.NestJS
manages dependencies through its own module system, utilizing theimports
andexports
arrays within the@Module
decorator. When a module is imported into another module's imports array and then re-exported, the consuming module may fail to recognize this dependency.This occurs because
Nx's
static analysis doesn't detect dependencies managed internally byNestJS's
Dependency Injection system. Consequently, the build process fails, as the workspace doesn't acknowledge the module as a known dependency.Beta Was this translation helpful? Give feedback.
All reactions