Closed awanuch closed 1 year ago
REPRO PROJECT (All default generate options, call GET on test-service to get the TypeError): https://github.com/awanuch/feathers-dove-hook-context-repro.git
async (ctx) => { console.log(ctx.toJSON()) return ctx }
The hook context.toJSON() should return the full hook context properties.
TypeError (Cannot read properties of undefined (reading 'toJSON'))
Module versions: All feathers modules at 5.0.0-pre.38
NodeJS version: Node 16.3.1
Operating System: Windows 10 Pro
Steps to reproduce
REPRO PROJECT (All default generate options, call GET on test-service to get the TypeError): https://github.com/awanuch/feathers-dove-hook-context-repro.git
async (ctx) => { console.log(ctx.toJSON()) return ctx }
Expected behavior
The hook context.toJSON() should return the full hook context properties.
Actual behavior
TypeError (Cannot read properties of undefined (reading 'toJSON'))
System configuration
Module versions: All feathers modules at 5.0.0-pre.38
NodeJS version: Node 16.3.1
Operating System: Windows 10 Pro