简体   繁体   中英

feathers-client primus not found

I am getting this error Uncaught TypeError: _feathersClient2.default.primus is not a function

My code is as follows, I am using using ES6 with babel as the compiler.

import feathers from 'feathers-client';


const app = feathers().configure(feathers.primus({
  transformer: 'sockjs',
  pathname: '/primus',
}));

const locationService = app.service('location');

That appears to be an error in feathers-client. I've created an issue so feel free to follow along over there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM