v8 dependency not listed in package.json #442
-
I am using openid-client 5.1.0 as a dependency of next-auth 4.x. When I start my app I get the following error message:
Sure enough, It seems that |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
v8 is a standard node.js built-in module. It is most likely you're not using next-auth right, i'll defer to @balazsorban44 |
Beta Was this translation helpful? Give feedback.
-
...and I was using next-auth wrong. |
Beta Was this translation helpful? Give feedback.
-
So obviously it's caused when trying to bundle server-side only code into a client bundle. I've had this issue when my client-side code imported a file with some helper functions, because that file also included an unrelated function which imported next-auth's |
Beta Was this translation helpful? Give feedback.
-
I updated to
And now get this error. There has to be some better way to let users know what to change to fix this if they upgrade. |
Beta Was this translation helpful? Give feedback.
v8 is a standard node.js built-in module. It is most likely you're not using next-auth right, i'll defer to @balazsorban44