我正在学习 Udemy 上的一门基于 React 的课程(这里是 Brad Schiff 的 React for the Rest of Us 课程),我收到了一个与 webpack 相关的错误,导致它无法编译。
当我尝试从我正在学习的 Udemy 课程中编译 webpack 文件时,我收到以下错误...这是我在终端上收到的错误的图片: 请在此处查看
以下是错误文本,但请查看链接以获取更多详细信息(作为屏幕截图):
Module not found: Error: Can't resolve 'path' in '/Users/seanmodd/Development/2021/BradSchiff/Frontend/node_modules/webpack/lib/util'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to: …Run Code Online (Sandbox Code Playgroud)