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

Is there a way to use it with nestjs [Question] #91

Open
KaimDev opened this issue Sep 26, 2023 · 1 comment
Open

Is there a way to use it with nestjs [Question] #91

KaimDev opened this issue Sep 26, 2023 · 1 comment
Labels
question Further information is requested

Comments

@KaimDev
Copy link

KaimDev commented Sep 26, 2023

Hello, I loved this tool but I have had quite a few problems when using it with the Nestjs compiler: nest

[ERR] tst-reflect: You call getType() method directly. You have probably wrong configuration, because tst-reflect-transformer package should replace this call by the Type instance.
If you have right configuration it may be BUG so try to create an issue.
If it is not an issue and you don't want to see this debug message, create field 'tst-reflect-disable' in global object (window | global | globalThis) eg. `window['tst-reflect-disable'] = true;

I don't know if there is already a way to implement it with nestjs or if there will be support in the future.

I would be very grateful if you could tell me a correct way to configure the project with the library, thank you very much

@KaimDev KaimDev added the question Further information is requested label Sep 26, 2023
@Hookyns
Copy link
Owner

Hookyns commented Sep 26, 2023

Related to #75

There are issues with nest cmd. My reaction in the linked issue:

So you have to use build: npx ttsc, start: node dist/main and there should be no problem.

Or second option is to use ts-patch, which will override typescript package so the "native" tsc cmd will invoke compilation with transformer, every time. So you can use nest build and nest start cmds.

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

No branches or pull requests

2 participants