Why I'm getting an error when having db.insert code?
I'm using next js for this project. It gives me an error which called
Module not found: Can't resolve 'net'
; when I have an "insert into database code" as below:
I also hard-coded the user id to see if there is any problem with it, but it is still the same. By the way, here is the relevant schemas:
I have been trying to fix this error for days and it is so frustrating. Do anyone know how to fix it? Please let me know ðŸ˜0 Replies