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

Unable to import match sorter from versions 5.0.0+ #119

Closed
battlejj opened this issue Dec 10, 2020 · 1 comment
Closed

Unable to import match sorter from versions 5.0.0+ #119

battlejj opened this issue Dec 10, 2020 · 1 comment

Comments

@battlejj
Copy link

  • match-sorter version: 5.0.0+
  • node version: 12.16.3

Relevant code or config

import matchSorter from 'match-sorter';

What you did:
Tried to import match-sorter and use it.

What happened:
When trying to use match-sorter I get the TypeScript error:

node_modules/match-sorter/dist/index")' has no call signatures.ts(2349)

Reproduction repository:

Going to https://github.com/kentcdodds/match-sorter/blob/master/other/EXAMPLES.md and clicking on the "Basic Example" and then changing the library version to 5.0.0+ will show the broken imports. 4.2.1 seems to be the last one that built correctly.

https://codesandbox.io/s/xenodochial-water-ffdow

Problem description:

No index.js appears to be created in the build.

Suggested solution:

Make the build work again.

@battlejj
Copy link
Author

Closing because I copied an old example I guess and it should be:

import {matchSorter} from 'match-sorter';

whoops!

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

1 participant