#Module build failed
1 messages · Page 1 of 1 (latest)
The error you're encountering is related to the use of the node:events module. This module is one of the Node.js modules that can be imported with and without the node: prefix when using the import statement. This module facilitates event-driven programming with custom event emitters and listeners.
However, it seems like your current setup doesn't support the node: prefix. This might be due to the version of Webpack or Next.js you're using, or a missing configuration.
Unfortunately, the provided extracts do not contain specific information on how to resolve this issue. I would recommend checking your Webpack and Next.js versions and configurations, and if the problem persists, refer to the official Next.js and Webpack documentation or their respective communities for further assistance.
Here are some helpful links:
- Next.js Documentation (https://nextjs.org/docs)
- Webpack Documentation (https://webpack.js.org/configuration/resolve/#resolvealias)