DEV Community

Discussion on: Adding MongoDB (Mongoose) to Next.js APIs

Collapse
 
gaddmaster profile image
Daniel Gadd

Hi

Getting errors with getServerSideProps, which is an important example you left out. For a time it worked until recently. When I import a scheme on a page I get a t.version error and others.

Do you know the correct, error free way at importing a scheme on a page for use with getServerSideProps ?

Thanks

Daniel

Collapse
 
raphaelchaula profile image
Raphael Chaula

Hi, can you share the snippet or your code please!
It will be easier for me to understand the issue and help you.

Collapse
 
gaddmaster profile image
Daniel Gadd

Wow - Didn't see this until now. Playing around and got through it but when it pops up again I'll try make a tiny empty project to show example. I did recently update Node and NextJS so maybe not see again :)