Giter Club home page Giter Club logo

Comments (6)

weareoutman avatar weareoutman commented on August 24, 2024 1

@Goregius Currently there is a problem of joi conflict when you using yarn link. Here is a workaround: go to your docusaurus project and run yarn why joi you will get a version of joi. Then go to your docusaurus-search-local folder and run yarn why joi, you will get another version of joi. The versions maybe different, you can add code like below in package.json in your docusaurus-search-local folder, to make them use the same version of joi:

  "resolutions": {
    "joi": "VERSION"
  }

Change VERSION to the exactly same version of joi of your docusaurus project.

Remember not to commit this change to your PR, since it's only a temporary workaround to fix issues with yarn link.

from docusaurus-search-local.

weareoutman avatar weareoutman commented on August 24, 2024

Yes, this is the desired behavior, however I can't make it work currently. Help wanted and PRs welcome.

from docusaurus-search-local.

Goregius avatar Goregius commented on August 24, 2024

I tried running the project locally, and while it works with the released version on npm, the local version runs into the Error: Cannot mix different versions of joi schemas error (#144). I used yarn link and yarn start to test it locally.

from docusaurus-search-local.

SebastianSchuetze avatar SebastianSchuetze commented on August 24, 2024

docusauraus start command does not support search index.

Maybe you want to use docusaurus serve instead.

from docusaurus-search-local.

Goregius avatar Goregius commented on August 24, 2024

Sorry I meant yarn start from the docusaurus-search-local folder. I was using yarn build in the docusaurus folder.

from docusaurus-search-local.

weareoutman avatar weareoutman commented on August 24, 2024

Closed via #147 and released in v0.22.0

from docusaurus-search-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.