docusaurus-search-local
docusaurus-search-local copied to clipboard
conflicting dependency with @docusaurus@[email protected]
Please describe the bug you are seeing
When trying to do a fresh install of the repo below I get a dependency conflict. The source repository uses Docusaurus 3.0.1 but local-search has a hard dependency on 2.4.0 - see:
https://github.com/cmfcmf/docusaurus-search-local/blob/main/package-lock.json#L2368
How can we best reproduce the bug?
Try to build main for the following repository using either Node 18 or 20:
https://github.com/boxyhq/website
Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
Docusaurus: 3.0.1 search-local: 1.1.0
Which Node.js version are you using?
Tried 18 and 20
Which theme are you using?
Yes, I am using @docusaurus/theme-classic
How does your plugin config look like?
['@cmfcmf/docusaurus-search-local', {}],
Additional context
I used --force and everything seems to work fine.
I have the same problem, plz fix this
in the mean time you can override the version dependency for search-local Add this to your package.json
"overrides": {
"@cmfcmf/docusaurus-search-local": {
"@docusaurus/core": "^3.1.0"
}
},
Thanks @HLeithner!
Closing as a duplicate of #205.