You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:46753) UnhandledPromiseRejectionWarning: TypeError: schema is not a function
at uWS.HttpResponse.send (/Users/c.fernandez.traba/Development/Projects/Online%20Coaching%20API/plans/node_modules/nanoexpress/build/nanoexpress.js:866:18)
at /Users/c.fernandez.traba/Development/Projects/Online%20Coaching%20API/plans/node_modules/nanoexpress/build/nanoexpress.js:1779:20
at processTicksAndRejections (internal/process/task_queues.js:97:5)
I am getting the following errors:
when trying to use the following examples:
https://github.com/nanoexpress/nanoexpress/blob/master/examples/swagger-ui.js
https://github.com/nanoexpress/nanoexpress/blob/master/examples/schema.js
But probably the same is happening for any example where the schemas are set directly as a MW.
I am using node 14.0.0 but i have the same errors under node 10.16.0 and nanoexpress 2.0.1.
Is this documentation up to date: https://nanoexpress.js.org/schemas. ?
Thanks
The text was updated successfully, but these errors were encountered: