feathersjs-ecosystem / feathers-memory

An in memory feathers service
MIT License
44 stars 18 forks source link

fix: TypeError: this.options.matcher is not a function #96

Closed bitflower closed 5 years ago

bitflower commented 5 years ago

In a typescript project using esModuleInterop using rollup as bundler require('sift') doesn't have a default export.

I don't know how to fix this for all cases. Any idea?

Thanks!

daffl commented 5 years ago

I think this might be because you have a later version of Sift installed somewhere (#95). Looks like the breaking changes would affect the behaviour of this adapter quite a bit.

bitflower commented 5 years ago

You are right. feathers-authentication-management, feathers-hooks-common and mongoose are using different versions:

Bildschirmfoto 2019-06-22 um 08 14 22

Only mongoose uses it in dependencies the others have it in devDependencies.

mongoose and feathers-memory both use the latest 7.0.1.

bitflower commented 5 years ago

Fixed by using updated feathers-authentication-management! However this package seems not very well maintained. PR open to fix the open issues!

https://github.com/feathers-plus/feathers-authentication-management/pull/122

bitflower commented 5 years ago

Closed as not the real cause (see above)