Closed Kjaer closed 3 years ago
I tracked down the cause of the error and attached the screenshots below, This is where the react-minisearch
fails.
ReactCurrentDispatcher.current
is null
Hi @Kjaer , thanks for reporting this, I will have a look at it as soon as possible!
It turns out, it's a problem with Rollup.js and local dependencies (using file:
in package.json
). When released, it works properly (in fact, the latest master was now released as v3.0.1
).
I will try to report the problem to Rollup.js, even though it has surfaced already in a few issues posted in the past.
Thanks again for reporting!
Hello there @lucaong,
I was recently used the minisearch hook you did here and preparing for a PR for improvement. But I stuck on failing master. Here is what I did:
react-minisearch
repo on my local, install the deps and build it (yarn install && yarn build
)react-minisearch
deps from"^2.1.4"
to"file:../"
yarn install && yarn start
)Here is the full output of my browser's dev tools console
I still wish to make my improvement PR once fixing this error. I am hoping you might leave some clue why is the error happening. And I gladly introduce a PR to fix it.