Closed waghanza closed 2 weeks ago
I used jsr. https://jsr.io/@oak/oak
Yes, seems to work locally, but not inside the container @donywan
When login onto the container, and trying deno run app.ts
, I have
error: Could not resolve "@oak/oak", but found it in a package.json. Deno expects the node_modules/ directory to be up to date. Did you forget to run `deno install`?
at file:///usr/src/app/app.ts:1:37
and deno install
leads to
error: npm package '@jsr/oak__oak' does not exist.
Yes, seems to work locally, but not inside the container @donywan
When login onto the container, and trying
deno run app.ts
, I haveerror: Could not resolve "@oak/oak", but found it in a package.json. Deno expects the node_modules/ directory to be up to date. Did you forget to run `deno install`? at file:///usr/src/app/app.ts:1:37
and
deno install
leads toerror: npm package '@jsr/oak__oak' does not exist.
Try deleting the oak
dependency in package.json
.
@waghanza deno.json
{
"imports": {
"@oak/oak": "jsr:@oak/oak@^17.1.3"
}
}
Needs a package.json and a deno.json ?
Needs a package.json and a deno.json ?
Needs deno.json
.
The latest version of oak
in the current npm repository is 14.1.0. https://www.npmjs.com/package/@oakserver/oak.So you need to use jsr to install dependencies.
Failing frameworks
@donywan for bun, I have
for deno