Deno: Cannot load modules

Created on 1 Jun 2020  路  5Comments  路  Source: denoland/deno

Every time i try to load modules like bcrypt, mongo and etc. code crashes and shows me this error.

error: The system cannot find the path specified. (os error 3).

import { Application, Router } from "https://deno.land/x/oak/mod.ts";
import { init, mongoClient } from "https://deno.land/x/mongo/mod.ts";

here first line is executed correctly, but the second line throws an error.

bug cli

All 5 comments

Maybe related to https://github.com/denoland/deno/issues/5982 if you are importing ts from a js file. Try downgrading to 1.0.2 if you are on 1.0.3 to see if it fixes it.

So i can't use typescript modules with javascript?

@shotikot this is a regression in 1.0.3 which will be fixed by #6000

This should be fixed in 1.0.4

I updated to 1.0.5 but still get the same error. It works well on 1.0.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  路  3Comments

sh7dm picture sh7dm  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments

watilde picture watilde  路  3Comments

kitsonk picture kitsonk  路  3Comments