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: Can't resolve 'child_process' #210
Comments
What is your deployment environment? |
@jescalan Hi, it is the local dev environment. And the node version is v14.18.0. |
Okok - could you create a minimal reproduction repo and post it here? I can pull it down and take a look : ) |
Same issue here! i'm changed to version 2 again because i couldn't solve it. Just create a next application in 10 version and use mdx with your exmple code here |
This seems to work for me in dev (I'm kinda new to this so I don't know if this fixes the problem or just hides it): /// next.config.js
module.exports = {
webpack5: true,
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
config.resolve.fallback.child_process = false;
config.resolve.fallback.worker_threads = false;
}
return config;
},
reactStrictMode: true,
}; I was getting similar module not found errors for |
That's because you have client side and server side content in the same file. If you extract that |
Closing this, please feel free to open another issue or drop a comment if you're still having troubles here. Thanks! |
With the version "next-mdx-remote": "3.0.8", I'm facing with the error below:
I use the
mdx-remote
in the same file, where thegetStaticPaths
andgetStaticProps
were used:Does anyone have a solution for this issue?
The text was updated successfully, but these errors were encountered: