[react-markdown] Cannot compile with webpack 5 #903
-
Affected packages and versions Steps to reproduce Build with webpack 5. Expected behavior Actual behavior
Solutions that I tried which didn't work
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 12 replies
-
@nikhilDigiplusIT did you try the suggestion noted in the error message?
Implies that changing - new webpack.ProvidePlugin({ process: 'process/browser', })
+ new webpack.ProvidePlugin({ process: 'process/browser.js', }) may work |
Beta Was this translation helpful? Give feedback.
-
This is still an issue for me. I've prepared a simplified version of my setup to show the issue: https://github.com/ashleydavis/react-markdown-with-webpack-5 I've tried both |
Beta Was this translation helpful? Give feedback.
-
I'm using the latest React-markdown and Webpack as of today. |
Beta Was this translation helpful? Give feedback.
-
This is the result I'm getting in the browser: Can anyone else confirm if this is still a problem for them? Here's the example, just clone and run https://github.com/ashleydavis/react-markdown-with-webpack-5 I'm using Node.js v16.14.0 |
Beta Was this translation helpful? Give feedback.
-
I have the same problem and can't sovle it acoording to the solution above. I have to rollback to version 6.x to solve the problem. |
Beta Was this translation helpful? Give feedback.
-
webpack 5 add rule {
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
resolve: {
fullySpecified: false
}
} |
Beta Was this translation helpful? Give feedback.
@nikhilDigiplusIT did you try the suggestion noted in the error message?
Implies that changing
may work