Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

no exported member 'RouteLookup' #3322

Closed
fidelio314 opened this issue Oct 24, 2023 · 1 comment
Closed

no exported member 'RouteLookup' #3322

fidelio314 opened this issue Oct 24, 2023 · 1 comment

Comments

@fidelio314
Copy link

fidelio314 commented Oct 24, 2023

Steps to reproduce

When executing on a new typescript project (v5) the
npm run compile

i have this error when compiling:
The scenario is:

npm create feathers@latest feather-app

then
selected: express as transport and REST (no real time) + SQL db adapter.
Then

npm install

then

> npm run compile

> feather-app@0.0.0 compile
> shx rm -rf lib/ && tsc

node_modules/@feathersjs/express/lib/declarations.d.ts:4:119 - error TS2305: Module '"@feathersjs/feathers"' has no exported member 'RouteLookup'.

4 import { Application as FeathersApplication, Params as FeathersParams, HookContext, ServiceMethods, ServiceInterface, RouteLookup } from '@feathersjs/feathers';
                                                                                                                        ~~~~~~~~~~~


Found 1 error in node_modules/@feathersjs/express/lib/declarations.d.ts:4

Expected behavior

The typescript compilation should work

Actual behavior

Constantly compiling breaks.

System configuration

Module versions feathesjs versions:

"@feathersjs/adapter-commons": "^5.0.11",
"@feathersjs/authentication": "^5.0.11",
"@feathersjs/authentication-client": "^5.0.11",
"@feathersjs/configuration": "^5.0.11",
"@feathersjs/errors": "^5.0.11",
"@feathersjs/express": "^5.0.11",
"@feathersjs/feathers": "^5.0.11",
"@feathersjs/knex": "^5.0.11",
"@feathersjs/schema": "^5.0.11",
"@feathersjs/transport-commons": "^5.0.11",
"@feathersjs/typebox": "^5.0.11",

NodeJS version: 18.18.2

Operating System: ubuntu 23.10

@fidelio314
Copy link
Author

it seems that the decalration of RouteLookup was added on this file packages/express/src/declarations.ts on this commit

26aa937#diff-8a215d34dc2acdeff0871a1946ad1c914ebf5c039cfdb080c994c3d5652d6ac9
"
thought i dont understand why as the package feathersjs/feathers does not export it

@feathersjs feathersjs locked and limited conversation to collaborators Nov 27, 2023
@daffl daffl converted this issue into discussion #3351 Nov 27, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant