Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding watch() in Angular #199

Open
2 tasks
pit999 opened this issue Nov 16, 2022 · 1 comment
Open
2 tasks

Adding watch() in Angular #199

pit999 opened this issue Nov 16, 2022 · 1 comment

Comments

@pit999
Copy link

pit999 commented Nov 16, 2022

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>>'. 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:

@Rokania
Copy link

Rokania commented Nov 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants