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
I believe I'm getting Webpack's fake process module when requiring process (require("process")) and process global object contains only the env object.
Expected Behavior
I'm expecting the real process in server components.
To Reproduce
In a server component try to print process.version for instance
Many packages examine the process object to detect if they are in the server vs. client mode. In my case Prisma Client thinks I'm running the code in browser.
It's pretty related to the runtime so far. Til now (the time I commnent) it's running on the edge (a web like runtime) if you're using RSC with next.js. So it uses a browser polyfilled one. After bringing nodejs runtime into RSC, the process could be the nodejs runtime process.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Environment info
Run
next info
(available from version 12.0.8 and up)I think 12.0.8 is not published...
What version of Next.js are you using?
^12.0.8-canary.11
What version of Node.js are you using?
12
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
N/A
I believe I'm getting Webpack's fake
process
module when requiring process (require("process")
) andprocess
global object contains only theenv
object.Expected Behavior
I'm expecting the real
process
in server components.To Reproduce
In a server component try to print
process.version
for instanceThe text was updated successfully, but these errors were encountered: