Skip to content

[react-markdown] Cannot compile with webpack 5 #903

Discussion options

You must be logged in to vote

@nikhilDigiplusIT did you try the suggestion noted in the error message?

BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is a '.mjs' file or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

Implies that changing

- new webpack.ProvidePlugin({ process: 'process/browser', })
+ new webpack.ProvidePlugin({ process: 'process/browser.js', })

may work

Replies: 6 comments 12 replies

Comment options

You must be logged in to vote
9 replies
@charliematters

This comment has been hidden.

@charliematters

This comment has been hidden.

@wooorm

This comment has been hidden.

@wooorm
Comment options

@keslo
Comment options

Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ashleydavis
Comment options

@ashleydavis
Comment options

@whinc
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants