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
/server/node_modules/@feathersjs/authentication/lib/service.js:141
this.hooks({
^
TypeError: this.hooks is not a function
at Object.setup (/server/node_modules/@feathersjs/authentication/lib/service.js:141:14)
at /server/node_modules/@feathersjs/feathers/lib/application.js:139:17
at Array.forEach (<anonymous>)
at Function.setup [as _super] (/server/node_modules/@feathersjs/feathers/lib/application.js:133:32)
at Function.setup (/server/node_modules/@feathersjs/socketio/lib/index.js:70:30)
at Function.newMethod (/server/node_modules/uberproto/lib/proto.js:34:20)
at Function.app.setup (/server/src/sequelize.js:20:29)
at Function.listen (/server/node_modules/@feathersjs/express/lib/index.js:63:12)
at Function.newMethod (/server/node_modules/uberproto/lib/proto.js:34:20)
at Function.listen (/server/node_modules/@feathersjs/socketio/lib/index.js:39:25)
[nodemon] app crashed - waiting for file changes before starting...
What is wrong here?
The text was updated successfully, but these errors were encountered:
I am using Feathers.js for the backend.
This is the original response from POST /authentication
I want to discard the
authentication
field from the response, so I modifiedauthentication.js
as:Then an error occurs:
What is wrong here?
The text was updated successfully, but these errors were encountered: