Import trace for requested module: ./index.js ./src/app/listofposts/page.tsx - warn Fast…
- User
Import trace for requested module: ./index.js ./src/app/listofposts/page.tsx
- warn Fast Refresh had to perform a full reload due to a runtime error.
- wait compiling /favicon.ico/route (client and server)...
- error ./production-logger.js:1:17 Module not found: Can't resolve 'stream/consumers'
1 | const { json } = require("stream/consumers"); | ^ 2 | const{format,createLogger, transports} = require("winston"); 3 | const{timestamp, combine, printf, error} = format; 4 |
- Assistant
The import trace for the requested module "./index.js" and "./src/app/listofposts/page.tsx" is as follows:
- ./index.js
- ./src/app/listofposts/page.tsx
During the loading of the module, Fast Refresh issued a warning that a full reload was required due to a runtime error. After that, the module waited to compile the "/favicon.ico/route" for both client and server. However, an error occurred when trying to resolve the "stream/consumers" module, which was required in the "production-logger.js" file located at line 1 column 17. The error message indicates that the module was not found. This can be confirmed by visiting the provided link, which explains how to resolve the "module-not-found" error in NextJS.