frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

Puppeteer executing on the server but not client [12:17pm] #46

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

I don't get this error by returning the same puppeter() invocation as the one in the server

Screen Shot 2023-05-13 at 12 15 59 PM

frankcollins3 commented 1 year ago

https://stackoverflow.com/questions/57161839/module-not-found-error-cant-resolve-fs-in

apparently fs has to be used serverside. I saw on another stack overflow page someone discussing fs coming built-into-node @ v.14.0+

That problem doesn't apply to me, but using fs/promises (puppeteer automatically) is causing the error clientside only.

[12:28pm]