You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, after switching to webpack 5, I just can't get this module to work, I tried everything possible, added polyfills to the webpack settings, added the module require('process') to the /core.js . Tell me how you can get it to work at least temporarily?
Uncaught TypeError: process.cwd is not a function
at new VFile (vendors-node_modules_material-ui_icons_esm_EventAvailable_js-node_modules_material-ui_icons_e-69977d.bundle.3539fc11cce8d41811bd.js:10184)
at VFile (vendors-node_modules_material-ui_icons_esm_EventAvailable_js-node_modules_material-ui_icons_e-69977d.bundle.3539fc11cce8d41811bd.js:10178)
at Function.parse (vendors-node_modules_material-ui_icons_esm_EventAvailable_js-node_modules_material-ui_icons_e-69977d.bundle.3539fc11cce8d41811bd.js:9384)
at ReactMarkdown (vendors-node_modules_material-ui_icons_esm_EventAvailable_js-node_modules_material-ui_icons_e-69977d.bundle.3539fc11cce8d41811bd.js:8500)
at renderWithHooks (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:79814)
at mountIndeterminateComponent (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:82493)
at beginWork (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:83607)
at HTMLUnknownElement.callCallback (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:65199)
at Object.invokeGuardedCallbackDev (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:65248)
at invokeGuardedCallback (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:65303)
at beginWork$1 (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:88214)
at performUnitOfWork (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:87165)
at workLoopSync (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:87141)
at performSyncWorkOnRoot (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:86767)
at vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:76100
at unstable_runWithPriority (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:104976)
at runWithPriority$1 (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:76050)
at flushSyncCallbackQueueImpl (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:76095)
at flushSyncCallbackQueue (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:76083)
at scheduleUpdateOnFiber (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:86210)
at dispatchAction (vendors-node_modules_babel_runtime_helpers_asyncToGenerator_js-node_modules_babel_runtime_hel-c70d23.bundle.15c7cbcdd7af9de1ef55.js:80671)
at src_pages_releases_jsx.bundle.5da1a3c4fe86fc0c934a.js:102
The text was updated successfully, but these errors were encountered:
Many new developers do not know how to configure webpack.
When they use a package that somewhere deep down uses `path` or `process` or
whatnot, through webpack 5, they mistakingly think this package does not work in
browsers.
This infuriating mistake by webpack leads to superfluous work for maintainers
and bigger bundles for users because polyfills add bloat.
See:
* <https://blog.sindresorhus.com/webpack-5-headache-b6ac24973bf1>
* <vercel/next.js#16022>
Note that this change shaves off 40% from the bundle size compared to including
`path` and `process`, however, it will double the bundlephobia size (because it
normally does not include path/process) and will hurt folks who depend on
another project that includes `path`.
Related to #16.
Related to #28.
Related to #38.
Related to #35.
Related to #56.
Related to #57.
Related to #58.
Related to remarkjs/react-markdown#492.
Related to remarkjs/react-markdown#514.
Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
Hello, after switching to webpack 5, I just can't get this module to work, I tried everything possible, added polyfills to the webpack settings, added the module require('process') to the /core.js . Tell me how you can get it to work at least temporarily?
The text was updated successfully, but these errors were encountered: