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

nestjs 10 removed misspelled CUSTOM_ROUTE_ARGS_METADATA #825

Open
ckaeslin opened this issue Jun 21, 2023 · 4 comments
Open

nestjs 10 removed misspelled CUSTOM_ROUTE_ARGS_METADATA #825

ckaeslin opened this issue Jun 21, 2023 · 4 comments

Comments

@ckaeslin
Copy link

Bug Report

Due to nestjs/nest@1a2ac3e
@nestjsx/crud doesn't work with nestjs 10

Current behavior

TypeError: Cannot read properties of null (reading 'options')
at @nestjsx/crud-typeorm/src/typeorm-crud.service.ts:122:18

Input Code

Expected behavior

Possible Solution

Also fix CUSTOM_ROUTE_AGRS_METADATA to CUSTOM_ROUTE_ARGS_METADATA, though this would break every application which uses nestjs < 9.0.6

Environment


Package version: 5.0.0-alpha.3
 
For Tooling issues:
- Node version: 18.6.0
- Platform:  Mac
- Database: Postgres

Others:

Repository with minimal reproduction

@superiums
Copy link

same issue.

@nguyennhukhanh
Copy link

I have the same error

@sandu9618
Copy link

Is there any update on this issue. I also got the same error.

@danielsharvey
Copy link

If you are using @rewiko/crud, use patch-package to handle the NestJS change.

For context, this is the issue: nestjs/nest#11450 (a constant CUSTOM_ROUTE_AGRS_METADATA was misspelt a while back and finally removed - the correct spelling is now used - CUSTOM_ROUTE_ARGS_METADATA).

Here is my patch:

@rewiko+crud+5.1.12.patch

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

No branches or pull requests

5 participants