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

Error: Cannot find namespace 'sift'. #215

Open
rmanibus opened this issue Aug 23, 2023 · 3 comments
Open

Error: Cannot find namespace 'sift'. #215

rmanibus opened this issue Aug 23, 2023 · 3 comments

Comments

@rmanibus
Copy link
Contributor

Steps to reproduce

Add this library to a typescript angular project
And configure feathers with rx:

import { feathers} from '@feathersjs/feathers';
import { rx } from 'feathers-reactive';
       feathers().
      .configure(
        rx({
          idField: '_id',
        })

Expected behavior

Tell us what should happen
feathers is configured properly

Actual behavior

Error: ../node_modules/feathers-reactive/dist/index.d.ts:76:61 - error TS2503: Cannot find namespace 'sift'.

76     var sift: <TItem, TSchema extends TItem = TItem>(query: sift.Query<TSchema>, options?: Partial<sift_lib_core.Options>) => (item: unknown, key?: sift_lib_utils.Key, owner?: any) => boolean;

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):

NodeJS version:
v18.17.0

Operating System:

Browser Version:

React Native Version:

Module Loader:

@rmanibus rmanibus changed the title Error: find namespace 'sift'. Error: Cannot find namespace 'sift'. Aug 23, 2023
@bitflower
Copy link
Collaborator

Hi @rmanibus

thanks for posting this.

May I ask for a repro repo? I doubt there will be the time to set this up and also to reduce the risk of using some other setup then you.

Thanks!
Matthias

@rmanibus
Copy link
Contributor Author

rmanibus commented Aug 23, 2023

sure:
https://github.com/rmanibus/feathers-reactive_reproducer_215

just run
npm install
then
npm start

@pit999
Copy link

pit999 commented Oct 27, 2023

I get the same error while compiling the module.
I have to add
import * as sift from 'sift';
This solves the 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

3 participants