-
Notifications
You must be signed in to change notification settings - Fork 27
How to get hooks
socketio
etc from feathers
object
#118
Comments
You are using
This means you should only use it if you don't use a module loader that supports NPM. |
@daffl so with webpack I suppose to import client modules separately and can't use const feathers = require('feathers/client');
const rest = require('feathers-rest/client');
const auth = require('feathers-authentication/client');
etc... It seems a little confusing. |
Yes, that's how it is documented in https://docs.feathersjs.com/clients/feathers.html#usage-in-nodejs-and-client-module-loaders |
You can still use the feathers-client module if you want. Just use |
@daffl thank you for the answers.
The code: const feathers = require('feathers/client');
const rest = require('feathers-rest/client');
const hooks = require('feathers-hooks');
const client = feathers()
.configure(hooks())
.configure(rest()); |
Probably a Webpack configuration issue somewhere. It worked when I tried it. |
According the documentation
hooks
orrest
should be available onfeathers
object, but there is no any. I'm using it with webpack:What am I doing wrong?
The text was updated successfully, but these errors were encountered: