Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] tsed doesn't work with Nx Workspace #2703

Closed
ivanicsjozsef94 opened this issue May 10, 2024 · 1 comment
Closed

[BUG] tsed doesn't work with Nx Workspace #2703

ivanicsjozsef94 opened this issue May 10, 2024 · 1 comment
Assignees
Labels

Comments

@ivanicsjozsef94
Copy link

ivanicsjozsef94 commented May 10, 2024

Describe the bug

Trying to use Ts.ED in an Nx Workspace monorepo but it seems like dependency injections doesn't work properly. For example, injecting a service into a controller results null object, AJV-schema files doesn't appear on swagger page etc.
image

To Reproduce

  1. Create project: npx [email protected] with the following options: image
  2. Adding tsed dependencies to package.json and then install them npm i
    image
  3. Creating Controller, Request and Response objects under apps/org/src/ folder and import the controller in Server.ts
    image
    image
    image
  4. Opening swagger and getting empty request body
    image
  5. Creating an empty service and inject into controller

Expected behavior

Just like generating a regular Ts.ED project, should works perfectly

Code snippets

No response

Repository URL example

No response

OS

Windows 11

Node version

v20.12.2

Library version

10.5.0

Additional context

No response

Copy link

🎉 Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants