Description:
I encountered an UnhandledSchemeError when attempting to build a module in my Next.js project. The error message reads:
"Module build failed: UnhandledSchemeError: Reading from "node:module" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. You may need an additional plugin to handle "node:" URIs."
I am using Windows as my operating system, Mozilla Firefox as my browser, and have React 18.2.0 and Next.js 13.3.0 installed.
Description: I encountered an UnhandledSchemeError when attempting to build a module in my Next.js project. The error message reads:
"Module build failed: UnhandledSchemeError: Reading from "node:module" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. You may need an additional plugin to handle "node:" URIs."
I am using Windows as my operating system, Mozilla Firefox as my browser, and have React 18.2.0 and Next.js 13.3.0 installed.
Steps to Reproduce:
Expected Behavior: The module should build successfully without encountering any errors.
Actual Behavior: Encountered an UnhandledSchemeError and the module failed to build.
Environment: