Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflicting dependency with @docusaurus@core@3.0.1 #199

Open
schalkneethling opened this issue Dec 21, 2023 · 3 comments
Open

conflicting dependency with @docusaurus@core@3.0.1 #199

schalkneethling opened this issue Dec 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@schalkneethling
Copy link

schalkneethling commented Dec 21, 2023

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 schalkneethling added the bug Something isn't working label Dec 21, 2023
@AntonBazhan
Copy link

I have the same problem, plz fix this

@HLeithner
Copy link

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
Copy link

cavo789 commented Jan 28, 2024

Thanks @HLeithner!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants