← 输入框|github.com|刷新
Skip to content

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

Closed
bitflower wants to merge 2 commits into
feathersjs:masterfrom
bitflower:master
Closed

bitflower wants to merge 2 commits into
feathersjs:masterfrom
bitflower:master

Conversation

@bitflower

Copy link
Copy Markdown

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!

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

Maybe the line should just be `const sift = require('sift');`?
@daffl

daffl commented Jun 21, 2019

Copy link
Copy Markdown
Member

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

bitflower commented Jun 22, 2019 •

Copy link
Copy Markdown
Author

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

bitflower commented Jun 22, 2019 •

Copy link
Copy Markdown
Author

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

feathersjs-ecosystem/feathers-authentication-management#122

@bitflower

Copy link
Copy Markdown
Author

Closed as not the real cause (see above)

@bitflower bitflower closed this Jul 3, 2019
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

Successfully merging this pull request may close these issues.

2 participants