@@dhriti3080 module.exports = { experimental: { serverActions: true, serverComponentsExternalPackages: ['mongoose'] } } And also restarted the app. still error coming
If you have not yet solved the problem. I think it will be better if you reinstall next and start afresh. The new version of next is not as stable as they claim to be.
Excelent content! thank you so much for sharing!
Please consider using TS w/ Next 13.4 it would be really helpful
You are welcome.
Easy for beginners
Thanks for the video, I joined your channel and I hope it grows fast :)
I am glad you liked the video and thank you for your wishes.
i like your content
Thank you.
amazing brother,, now it works
Hi , thank you for you video, looking forward to your channel
U r welcome.
Very nice tutorial kindly make next js 14.3 CRUD with table pagination.
I am glad you liked it. Will try to make a pagination project.
Brother kindly make more project on NextJS 13.4 .
Sure brother.
good brother nice effort thanks
Most welcome
thanks a lot sir ❤
Why can't I see the registered products in mongodb?
You can't see it where, the terminal or compass.
- error src\app\model\Todo.js (27:26) @ model
- error TypeError: mongoose.model is not a function
How to resolve this issue?
module.exports = mongoose.model("Todos", TodoSchema);
Try restarting the app. Did you import external server components in the next.config file.
@@dhriti3080
module.exports = {
experimental: {
serverActions: true,
serverComponentsExternalPackages: ['mongoose']
}
}
And also restarted the app. still error coming
If you have not yet solved the problem. I think it will be better if you reinstall next and start afresh. The new version of next is not as stable as they claim to be.
What you just did here, do we call it client side rendering or server side rendering ?
Server side rendering