Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

welter pfp
welter
@fun
next.js 13 using app router if you can help with any of these, that would be greatly appreciated – pre-load skeleton of site as content loads – show nprogress bar on top of page as content loads – disable button if input has no value
5 replies
0 recast
2 reactions

Elie pfp
Elie
@elie
If you’re struggling with anything that worked with page router then just add use client to the top of the file. Don’t wrestle with it.
1 reply
0 recast
0 reaction

welter pfp
welter
@fun
that always gives me this error Module not found: Can't resolve 'net'
1 reply
0 recast
0 reaction

Elie pfp
Elie
@elie
For which problem? That means you’re importing a file that isn’t available on the client.
2 replies
0 recast
0 reaction

welter pfp
welter
@fun
first one, but its not actually needed as a client but i tried lol would you know how to fix postgresql returning "Unhandled Runtime Error, Connection Closed" in a component? 😅
1 reply
1 recast
0 reaction

Elie pfp
Elie
@elie
You shouldn’t be loading Postgres on the client. Should only be on the server.
2 replies
0 recast
0 reaction

Elie pfp
Elie
@elie
Not sure that’s actually your issue there though. Was the same Postgres code working before? Do you use drizzle Postgres or something else? Check the GitHub issues for the relevant project. You’ve likely set it up wrong.
1 reply
0 recast
0 reaction

welter pfp
welter
@fun
possibly, will check that yeah
1 reply
0 recast
0 reaction

Elie pfp
Elie
@elie
What package are you using to connect to Postgres?
1 reply
0 recast
0 reaction