yarn do not handle it as import, so don't install transitive dependencies (which lunr is).
I can resolve this problem if i will just install dependency explicitly with yarn add -D lunr
Proposal
Let's improve install instructions, to not confuse another developers with this problem. I propose to mention that to use package docusaurus-lunr-search we have to install lunr
We can just fix text in section "How to Use ?" to npm i docusaurus-lunr-search lunr --save
Hi, thanks for search solution, i found bug - when i've tried to use this package with yarn, i've got error below
Explanation
As i understood, the problem is when i use plugin as described in docs
yarn do not handle it as import, so don't install transitive dependencies (which
lunr
is).I can resolve this problem if i will just install dependency explicitly with
yarn add -D lunr
Proposal
Let's improve install instructions, to not confuse another developers with this problem. I propose to mention that to use package
docusaurus-lunr-search
we have to installlunr
We can just fix text in section "How to Use ?" to
npm i docusaurus-lunr-search lunr --save