fix: TypeError: Cannot read properties of undefined (reading 'prototype') #924
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
I'm getting the following error after building the app. I'm getting only when i pass query param.
/api/role is working fine. But /api/role?type=1 is throwing below error
" TypeError: Cannot read properties of undefined (reading 'prototype') at ActionParameterHandler.normalizeParamValue)
My code is below. I've emitDecoratorMetadata": true in tsconfig compilerOptions as well.
@Get('/role')
async getRole(@QueryParams() query: any) {
console.log(query.type)
}
Did I miss anything?
The text was updated successfully, but these errors were encountered: