-
-
Notifications
You must be signed in to change notification settings - Fork 292
Description
Describe the bug
when i ran the project after updating the dependencies from 8.7.1 to 8.14.1 i got
I traced this bug inside
/**
* Assign the types of the generics that must be used for the property
* @param generics
*/
genericOf(...generics) {
const mapped = mapGenerics(this.#itemSchema || mapToJsonSchema(this.getTarget()), generics);
this.vendorKey(VendorKeys.GENERIC_OF, mapped);
return this;
}
and error that i got was
file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/JsonSchema.js:48
const genericLabels = jsonSchema.getGenericLabels();
^
TypeError: jsonSchema.getGenericLabels is not a function
at mapGenerics (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/JsonSchema.js:48:38)
at JsonSchema.genericOf (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/JsonSchema.js:270:24)
at file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/decorators/operations/returns.js:116:28
at file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/DecoratorContext.js:77:13
at Array.forEach ()
at ReturnDecoratorContext.runActions (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/DecoratorContext.js:76:22)
at ReturnDecoratorContext.map (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/decorators/operations/returns.js:223:21)
at ReturnDecoratorContext.onInit (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/decorators/operations/returns.js:188:26)
at ReturnDecoratorContext.bind (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/DecoratorContext.js:64:14)
at decorator (file:///Users/utopia/myprojects/backend-api/auth-service/node_modules/@tsed/schema/lib/esm/domain/DecoratorContext.js:20:45)
Node.js v20.19.0
To Reproduce
just run the project with prisma
Expected behavior
It should run as normal
Code snippets
Repository URL example
No response
OS
macos m1
Node version
20.19.0
Library version
8.14.1
Additional context
No response