Manik Islam MahiM
Denoβ€’13mo agoβ€’
19 replies
Manik Islam Mahi

How can I setup mongoose on deno+next.js app?

I have created a next.js project by following this tutorial: https://docs.deno.com/examples/next_tutorial/

Now how can I connect mongoose on this project?

I followed this tutorial: https://docs.deno.com/examples/mongoose_tutorial/ to add Mongoose to Deno+Next project but can't. Please see my attachment screenshot.

Do I need to install the Deno+Next.js project as a Mongoose dependency using the CLI?
Or it doesn't need to be installed using CLI. Directly importing it like this will work

import mongoose from "npm:mongoose@^6.7";
image.png
Deno
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
Build a Next.js App
Deno
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
How to use Mongoose with Deno
Was this page helpful?