Giter Site home page Giter Site logo

Comments (12)

T00rk avatar T00rk commented on July 28, 2024 2

The last available version on npm is 0.4.1

from redocusaurus.

T00rk avatar T00rk commented on July 28, 2024 2

from redocusaurus.

drichards-87 avatar drichards-87 commented on July 28, 2024 2

I was encountering the same issue (see my comment in #14). I was able to workaround it by downgrading the installed version of Redoc to v2.0.0-rc.53.

from redocusaurus.

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

Should be fixed in 0.4.4

from redocusaurus.

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

Can you also update redocusaurus to v0.4.2? In the beta webpack was upgraded to v5 that caused build issues.

Related to #25

from redocusaurus.

MaxandreJ avatar MaxandreJ commented on July 28, 2024

Hi, thanks for developing this package! Is there a way to make it work? I'm a novice with npm and I'm not sure how to install a specific version of your package from github.

I tried
npm install https://github.com/rohit-gohri/redocusaurus#4d415d68d3f07cbbd9757f39ba68f915586379e4 --save redocusaurus

(4d415d68d3f07cbbd9757f39ba68f915586379e4 is your v0.4.2 commit)

but I still have the same issue

from redocusaurus.

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

Yeah, sorry. 0.4.1 is the latest. 0.4.2 was for the internal package. I'm not sure what the problem is here because I have it running with 2.0.0-beta in the examples: https://github.com/rohit-gohri/redocusaurus/tree/main/example

Could one of you share a minimal repo where this is happening?

from redocusaurus.

patrick-simonson avatar patrick-simonson commented on July 28, 2024

+1 - Cloning your repo and doing an npm install + npm run start in the example folder brings up the issue for me.

from redocusaurus.

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

I think I would have to pin redoc dependency to a specific version instead of using ^

from redocusaurus.

bash83 avatar bash83 commented on July 28, 2024

Same issue using GitHub Actions to compile and publish the docs to GitHub Pages:

Module not found: Error: Can't resolve 'fs' in '/home/runner/work/docs/docs/node_modules/redoc/bundles'

Note: this is not happening on local development machine with (docusaurus build).

from redocusaurus.

sibelius avatar sibelius commented on July 28, 2024

create a sitePlugin.js file, so you can customize docusuarus webpack

module.exports = function (context, options) {
  return {
    name: 'custom-docusaurus-plugin',
    // eslint-disable-next-line
    configureWebpack(config, isServer, utils) {
      return {
        resolve: {
          alias: {
            path: require.resolve('path-browserify'),
          },
          fallback: {
            fs: false,
            http: require.resolve('stream-http'),
            https: require.resolve('https-browserify'),
            os: require.resolve('os-browserify/browser'),
          },
        },        
      };
    },
  };
};

import on docusuarus.config.js

module.exports = {
plugins: [require.resolve('./sitePlugin')],
}

from redocusaurus.

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

@sibelius That looks promising, could you open a PR adding them here: https://github.com/rohit-gohri/redocusaurus/blob/main/packages/docusaurus-theme-redoc/src/index.ts#L18-L27

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.