-
Notifications
You must be signed in to change notification settings - Fork 9
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
Uncaught TypeError: MiniSearch__default.default is not a constructor #33
Comments
Hi @timmeno1 , |
I have the same problem with v5.0.0 (v5.0.0-beta1 is working fine), my
|
Same issue with |
What is strange is that the examples in this repo are working fine, and so the projects where I use this library. I think I need some more info to debug this. For example, how do you import |
Are you using the https://create-react-app.dev/? import { useMiniSearch } from 'react-minisearch';
export const MyComponent: React.FC = () => {
...
const { search, searchResults, addAll, removeAll } = useMiniSearch<{
id: string;
name: string;
}>([], {
fields: ['name'],
storeFields: ['name'],
searchOptions: { prefix: true },
});
...
} |
I don’t, but I can try it to reproduce the issue |
I am also facing the same issue with |
Hello, i'm caused by "Uncaught TypeError: MiniSearch__default.default is not a constructor"
when just trying to initialize const { search, searchResults } = useMiniSearch(documents, miniSearchOptions)
doing same as provided in examples.
May be i'm doing wrong?
p.s. sorry for my english
The text was updated successfully, but these errors were encountered: