How to use Deno-Deploy with Fresh and Mongoose

249 views Asked by At

I can't deploy a project on deno deploy that uses the mongoose module.

I am trying to connect to a mongo database in a project that uses the fresh framework and I used mongoose to do so by using

import mongoose from "npm:mongoose@^6.7";

in my 'main.ts' file.

When I run the project locally there is no problem but when I push the changes to to GitHub the project can't be deployed on deno deploy because the mongoose module can't be found.

What is the correct way to use that module so the project can be deployed?

0

There are 0 answers