Open
Description
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?