D
Deno
How can I setup mongoose on deno+next.js app? - Deno
M
Deno
β’
16mo 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";
import mongoose from "npm:mongoose@^6.7";
Deno
Build a Next.js App
In
-depth documentation
, guides
, and reference materials for building secure
, high
-performance JavaScript and TypeScript applications with Deno
Deno
How to use Mongoose with Deno
In
-depth documentation
, guides
, and reference materials for building secure
, high
-performance JavaScript and TypeScript applications with Deno
Deno
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Deploy Next JS app on Deno Deploy
K
Kevin Kode / help
2y ago
Deno, React, Next.js
M
Martin Carlsson / help
13mo ago