cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
435 stars 67 forks source link

conflicting dependency with @docusaurus@core@3.0.1 #199

Closed schalkneethling closed 2 months ago

schalkneethling commented 7 months ago

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.

AntonBazhan commented 7 months ago

I have the same problem, plz fix this

HLeithner commented 6 months ago

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"
    }
  },
cavo789 commented 6 months ago

Thanks @HLeithner!

cmfcmf commented 2 months ago

Closing as a duplicate of #205.