-
Notifications
You must be signed in to change notification settings - Fork 37
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
Comments
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! |
sure: just run |
I get the same error while compiling the module. |
i have same error, is there a solution ? import * as sift from 'sift'; did not help |
In which file do you add the import statement? |
in the same file where rx is imported import * as sift from 'sift'; |
You have to add the line in file node_module\feathers-reactive\dist\index.d.ts |
Thank you for the help! node_module* directory is created by npm install , developers should not change anything there, how do you do this change ? is possible to deploy to production this type of change ? |
I was able to create postinstall script which always patch feathers-reactive library after install: patch-feathers-reactive.js reads content of .\node_module\feathers-reactive\dist\index.d.ts and add in the begginig "import * as sift from 'sift';" only if missing Thank you @pit999 for the help! |
I freezed the version in package.json of feathers-reactive (no changes since one year). |
This is an open source project. A pull request with the fixes can be made by anybody. |
Ok, I thought if I create an issue the issue will be solved :-) |
Steps to reproduce
Add this library to a typescript angular project
And configure feathers with rx:
Expected behavior
Tell us what should happen
feathers is configured properly
Actual behavior
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:
The text was updated successfully, but these errors were encountered: