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
Adding a text version of the screenshot above for people to find this issue:
On Next.js 14.1 when running next build, this error comes:
./node_modules/replicate/lib/stream.js
Module not found: Can't resolve 'stream' in '/Users/param/Code/poc/node_modules/replicate/lib'
Did you mean './stream'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
Current workaround: install readable-stream npm package.
Being fixed in: #181
Activity
paramaggarwal commentedon Feb 12, 2024
Adding a text version of the screenshot above for people to find this issue:
On Next.js 14.1 when running
next build, this error comes:Current workaround: install
readable-streamnpm package.Being fixed in: #181