Skip to content

Adding watch() in Angular #199

@pit999

Description

@pit999

Steps to reproduce

I updated my code to feathers 5-pre.33, feathers-reactive@0.10.0, ...
Afterwards I get the following typescript error:
Property 'watch' does not exist on type 'FeathersService<Application<any, any>, Service<any, Partial, Params>>'. 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions