Comments (12)
The last available version on npm is 0.4.1
from redocusaurus.
from redocusaurus.
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.
Should be fixed in 0.4.4
from redocusaurus.
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.
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.
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.
+1 - Cloning your repo and doing an npm install + npm run start in the example folder brings up the issue for me.
from redocusaurus.
I think I would have to pin redoc dependency to a specific version instead of using ^
from redocusaurus.
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.
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.
@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)
- Extend deploy script to sign git commits. HOT 1
- [ERROR] TypeError: Cannot set properties of undefined (setting 'minItems') HOT 9
- CSS broken HOT 1
- Callbacks lack proper background in dark mode HOT 1
- Is there a way to run the APIs through the redoc component ? HOT 1
- Support for Docusaurus 3.0 HOT 9
- Example not hidden for schema imports
- Redocusaurus should collect heading ids / anchors HOT 2
- Webpack missing in Peer Dependencies HOT 1
- Error: Docusaurus server-side rendering could not render static page with path /api/ because of error: slugify: string argument expected HOT 2
- Issue with calling useColorMode outside the ColorModeProvider for Docusaurus 3.0.1 HOT 5
- Logo from spec (x-logo) not being rendered. HOT 3
- Add warning for deprecated options and remove them in next breaking version
- Generate code samples
- Support versioning API along with docs HOT 1
- API Reference page on mobile device HOT 2
- Footer UI defect
- Sidebar scrolls under navbar on direct visit HOT 2
- Standalone redoc plugin HOT 3
- Sidebar scroll not working properly with offset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redocusaurus.