You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
vitonsky
added a commit
to vitonsky/docusaurus-lunr-search
that referenced
this issue
Dec 6, 2023
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
The text was updated successfully, but these errors were encountered: