feathers-reactive icon indicating copy to clipboard operation
feathers-reactive copied to clipboard

Adding watch() in Angular

Open pit999 opened this issue 3 years ago • 1 comments

Steps to reproduce

I updated my code to feathers 5-pre.33, [email protected], ... Afterwards I get the following typescript error: Property 'watch' does not exist on type 'FeathersService<Application<any, any>, Service<any, Partial, Params<Query>>>'. Did you mean 'patch'?ts(2551)

image

(First please check that this issue is not already solved as described here)

  • [ ] Tell us what broke. The more detailed the better. Type script compile error
  • [ ] If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc. import { Injectable } from '@angular/core'; import { Feathers } from './feathers.service';

@Injectable() export class DataService { constructor(private feathers: Feathers) { } data() { return (this.feathers .service('datas')) .watch() .find({ query: { $limit: 3000 } }); } }

Expected behavior

Tell us what should happen No compile error

Actual behavior

Tell us what happens instead

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): "@feathersjs/authentication": "^5.0.0-pre.29", "@feathersjs/authentication-client": "^5.0.0-pre.29", "@feathersjs/feathers": "^5.0.0-pre.29", "@feathersjs/koa": "^5.0.0-pre.29", "@feathersjs/socketio": "^5.0.0-pre.29", "@feathersjs/socketio-client": "^5.0.0-pre.29", "@feathersjs/transport-commons": "^5.0.0-pre.29", "@types/koa-static": "^4.0.2", "koa-static": "^5.0.0", "socket.io": "^4.5.1", "socket.io-client": "^4.5.1",

NodeJS version: 16.15.0 Angular 13.3.11 and 14.2.0 Operating System: Windows 10 (64 Bit) Browser Version:

React Native Version:

Module Loader:

pit999 avatar Nov 16 '22 18:11 pit999

Hello, I have the same problem. Any news about this problem?

Rokania avatar Nov 21 '23 10:11 Rokania