the-benchmarker / web-frameworks

Which is the fastest web framework?
MIT License
6.99k stars 672 forks source link

New release - 04112024 #7925

Closed waghanza closed 2 weeks ago

waghanza commented 2 weeks ago
Failing frameworks

@donywan for bun, I have

bun run root@4264daf7dd61:/usr/src/app# bun app.ts
error: Cannot find module '@oak/oak' from '/usr/src/app/app.ts'

Bun v1.1.34 (Linux arm64)

for deno

root@e03514a217e3:/usr/src/app# deno run app.ts
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
root@e03514a217e3:/usr/src/app# deno install
error: npm package '@jsr/oak__oak' does not exist.
root@e03514a217e3:/usr/src/app#
donywan commented 2 weeks ago

I used jsr. https://jsr.io/@oak/oak

waghanza commented 2 weeks ago

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.
donywan commented 2 weeks ago

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.

Try deleting the oak dependency in package.json.

donywan commented 2 weeks ago

@waghanza deno.json

{
  "imports": {
    "@oak/oak": "jsr:@oak/oak@^17.1.3"
  }
}
waghanza commented 2 weeks ago

Needs a package.json and a deno.json ?

donywan commented 2 weeks ago

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.