Skip to content

run compile produces TS2717 #3580

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

Open
arthwood opened this issue Apr 3, 2025 · 0 comments
Open

run compile produces TS2717 #3580

arthwood opened this issue Apr 3, 2025 · 0 comments

Comments

@arthwood
Copy link

arthwood commented Apr 3, 2025

I believe this is due to typescript breaking change.
This error starts showing up with typescript version 5.5.4. The last version where it succeeds is 5.4.5.

$ shx rm -rf lib/ && tsc
node_modules/@feathersjs/schema/lib/index.d.ts:20:9 - error TS2717: Subsequent property declarations must have the same type.  Property 'resolve' must be of type 'ResolverStatus<any, HookContext<Application<any, any>, any>> | undefined', but here has type 'ResolverStatus<any, HookContext<Application<any, any>, any>> | undefined'.

20         resolve?: ResolverStatus<any, HookContext>;
           ~~~~~~~

  ../node_modules/@feathersjs/schema/lib/index.d.ts:20:9
    20         resolve?: ResolverStatus<any, HookContext>;
               ~~~~~~~
    'resolve' was also declared here.


Found 1 error in node_modules/@feathersjs/schema/lib/index.d.ts:20

My feathers config:

"feathers": {
    "language": "ts",
    "packager": "yarn",
    "database": "sqlite",
    "framework": "koa",
    "transports": [
      "rest",
      "websockets"
    ],
    "schema": "typebox"
  },
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

1 participant