Can't resolve 'path' #57
-
This package is not working. it gives this error when import ReactMarkdown from "react-markdown": BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. If you want to include a polyfill, you need to: ERROR in ./node_modules/vfile/core.js 3:11-26 BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. If you want to include a polyfill, you need to: webpack 5.1.3 compiled with 2 errors in 3178 ms
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The answer is in the log 🙂
|
Beta Was this translation helpful? Give feedback.
The answer is in the log 🙂
path
is a part of vFile and likely will continue to be (see #16)To resolve this, webpack 5 needs to be told to shim
path
, see #38 (comment) and #38 (comment) for examples of how shimming can be done.