Dear friends,
I've trying to use nestjs/swagger module with a plain JavaScript solution (no TyepScript at all) without success.
I've got stuck with the following error wherever there is a route param such @Get(':id'):
D:\Git\nestswaggerbasic\node_modules@nestjs\swagger\dist\services\parameter-metadata-accessor.js:14
type: types[param.index],
^
TypeError: Cannot read properties of undefined (reading '0')
...
You can check these simple repo: https://github.com/julioapm/nestswaggerbasic
My Nest info:
[System Information]
OS Version : Windows 10
NodeJS Version : v20.9.0
NPM Version : 10.2.1
[Nest CLI]
Nest CLI Version : 10.2.1
[Nest Platform Information]
platform-express version : 10.2.8
swagger version : 7.1.15
testing version : 10.2.8
common version : 10.2.8
core version : 10.2.8
Thanks for any help,
Julio