-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Elysia is running?
1.2.25
What version of Node Adapter are you using?
1.2.6
What platform is your computer?
Darwin 24.4.0 arm64 arm
What steps can reproduce the bug?
Create an elysia app with pnpm. Then put these codes in main.ts file.
import { node } from "@elysiajs/node";
import { Elysia } from "elysia";
new Elysia({ adapter: node() })
.trace(({ context: { request } }) => {
console.log(`Request in trace is: ${request}`);
})
.get("/", () => ({ hello: "Node.js👋" }))
.listen(3000);
console.log("Listening on http://localhost:3000");Running the app, then send request to http://localhost:3000, this log message will appear in the console: Request in trace is: undefined
What is the expected behavior?
Request should not be undefined
What do you see instead?
No response
Additional information
This problem also cause the opentelemetry plugin to stop working because it will try to get HTTP request method from context.request.method here:
Have you try removing the node_modules and bun.lockb and try again yet?
Yes but the pnpm-lock.yaml
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working