Giter Site home page Giter Site logo

Comments (8)

tombusby avatar tombusby commented on July 28, 2024 1

Sure, FYI it's only at the point where I add this where things start to go wrong:

    [
      'redocusaurus',
      {
        specs: [{
          specUrl: 'https://redocly.github.io/redoc/openapi.yaml',
        }],
      }
    ],

package.json:

{
  "name": "flow-doc",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "docusaurus": "docusaurus",
    "start": "docusaurus start",
    "build": "docusaurus build",
    "swizzle": "docusaurus swizzle",
    "deploy": "docusaurus deploy",
    "serve": "docusaurus serve",
    "clear": "docusaurus clear"
  },
  "dependencies": {
    "@docusaurus/core": "2.0.0-alpha.70",
    "@docusaurus/preset-classic": "2.0.0-alpha.70",
    "@mdx-js/react": "^1.6.21",
    "clsx": "^1.1.1",
    "react": "^16.8.4",
    "react-dom": "^16.8.4",
    "redoc": "^2.0.0-rc.45",
    "redocusaurus": "^0.3.4"
  },
  "browserslist": {
    "production": [
      ">0.5%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

(the "redoc": "^2.0.0-rc.45", was added in an attempt to try to fix it. it fails without this too)

lock file is attached (would only let me attach it as a zip).

package-lock.zip

from redocusaurus.

rohit-gohri avatar rohit-gohri commented on July 28, 2024 1

Thanks for trying that out. Will check with updated dependencies.

from redocusaurus.

rohit-gohri avatar rohit-gohri commented on July 28, 2024 1

This should no longer be a problem in v0.4.0 (to be used with [email protected]. Since now it also uses [email protected]

from redocusaurus.

Christopher-Hsieh avatar Christopher-Hsieh commented on July 28, 2024 1

This update works great! I love the new examples you've added as well. I'm really pleased, thanks for your work!

from redocusaurus.

rohit-gohri avatar rohit-gohri commented on July 28, 2024

Could you share your package.json and package-lock.json/yarn.lock if possible?

from redocusaurus.

rohit-gohri avatar rohit-gohri commented on July 28, 2024

This is definitely an issue with dependency resolution. @docusaurus/core uses [email protected] while redoc uses [email protected]. Could you try removing node_modules and package-lock.json and try building with fresh node modules?

from redocusaurus.

rohit-gohri avatar rohit-gohri commented on July 28, 2024

Or adding [email protected] as a dependency?

from redocusaurus.

Christopher-Hsieh avatar Christopher-Hsieh commented on July 28, 2024

Or adding [email protected] as a dependency?

I have not tried this yet.

But i did do a clean install on the example project
With the docusaurus deps upgraded, e.g.

  "dependencies": {
    "@docusaurus/core": "^2.0.0-alpha.73",
    "@docusaurus/preset-classic": "^2.0.0-alpha.73",
    "redocusaurus": "^0.3.4"
  },

and received a similar error.

from redocusaurus.

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.