-
Notifications
You must be signed in to change notification settings - Fork 113
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
Module not found: Error: Can't resolve 'fs' #57
Comments
Can you also update redocusaurus to v0.4.2? In the beta webpack was upgraded to v5 that caused build issues. Related to #25 |
The last available version on npm is 0.4.1 |
Hi, thanks for developing this package! Is there a way to make it work? I'm a novice with I tried ( but I still have the same issue |
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? |
I've tried making the example work and it doesn't.
Le lun. 14 juin 2021 à 13:42, Rohit Gohri ***@***.***> a
écrit :
… 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?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEQ6LFSVD7ZO2SNGF3ZBY3TSXTLVANCNFSM46RPLOSA>
.
|
+1 - Cloning your repo and doing an npm install + npm run start in the example folder brings up the issue for me. |
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. |
I think I would have to pin redoc dependency to a specific version instead of using |
Same issue using GitHub Actions to compile and publish the docs to GitHub Pages:
Note: this is not happening on local development machine with (docusaurus build). |
create a 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')],
} |
@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 |
Should be fixed in 0.4.4 |
I've updated my docusaurus project to
2.0.0-beta.0
and redocusaurus is not working anymore due to this errorModule not found: Error: Can't resolve 'fs'
The text was updated successfully, but these errors were encountered: