Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Angular 4 feathers hook build fails - "All declarations of 'Service' must have identical type parameters" #172

Closed
amalg989 opened this issue Oct 5, 2017 · 3 comments

Comments

@amalg989
Copy link

amalg989 commented Oct 5, 2017

Expected behavior

Builds angular applciation with feathersjs socket connection to featherjs server without issues.

Actual behavior

Build failed with a message:

ERROR in [at-loader] ./node_modules/feathers-hooks/index.d.ts:8:13
TS2428: All declarations of 'Service' must have identical type parameters.

System configuration

  • Angular 4 (v4.4.4)
  • npm 5 (v5.4.2)
  • node 8 (v8.6.0)
  • webpack (v3.5.5)
  • Mac OS Sierra (10.12.6)

Temporary Fix:

remove "extends any" in line 8 found in ./node_modules/feathers-hooks/index.d.ts

interface Service

@baljeet
Copy link

baljeet commented Oct 13, 2017

Any update on this one? I faced similar issue with feathers and feathers-reactive...

@baljeet
Copy link

baljeet commented Oct 13, 2017

Interestingly enough, the error went away when i updated to version ^2.2.2 for feathers, i checked with the versions on feathers-chat-angular...
See if it works for you as well.
EDIT:
just update feathers-hooks to 2.1.0 version, it should work fine.

@daffl
Copy link
Member

daffl commented Oct 13, 2017

This is due to feathersjs/feathers#681 so both modules have to be at the latest version - feathers-chat-angular has been updated already via feathersjs-ecosystem/feathers-chat-angular@3dc1339

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

No branches or pull requests

3 participants