docusaurus-search-local icon indicating copy to clipboard operation
docusaurus-search-local copied to clipboard

conflicting dependency with @docusaurus@[email protected]

Open schalkneethling opened this issue 1 year ago • 3 comments
trafficstars

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.

schalkneethling avatar Dec 21 '23 16:12 schalkneethling

I have the same problem, plz fix this

AntonBazhan avatar Jan 03 '24 15:01 AntonBazhan

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"
    }
  },

HLeithner avatar Jan 20 '24 08:01 HLeithner

Thanks @HLeithner!

cavo789 avatar Jan 28 '24 17:01 cavo789

Closing as a duplicate of #205.

cmfcmf avatar Jun 09 '24 12:06 cmfcmf