-
-
Notifications
You must be signed in to change notification settings - Fork 26
Unable to Deploy with Tanstack Start + Nitro with Bun Runtime #594
Copy link
Copy link
Closed
unjs/nf3
#31Labels
bugSomething isn't workingSomething isn't working
Description
Pre-submission Checklist
- I have searched existing issues and this bug has not been reported
Description
While using @takumi-rs/image-response with tanstack start and nitro bundler with bun runtime, the development server works, and build passes but when starting, it throws error
$ PORT=4000 bun .output/server/index.mjs
➜ Listening on: http://localhost:4000/ (all interfaces)
443 | status: 404,
444 | message: `Cannot find any route matching [${event.req.method}] ${event.url}`
445 | });
446 | if (val && val instanceof Error) {
447 | const isHTTPError = HTTPError.isError(val);
448 | const error = isHTTPError ? val : new HTTPError(val);
^
error: Cannot destructure property '__extends' from null or undefined value
status: 500,
statusText: undefined,
headers: undefined,
data: undefined,
body: undefined,
unhandled: true,
at /Users/envoy1084/Projects/apps/docs/.output/server/_ssr/ssr.mjs:448:41
3608 | exporter("__classPrivateFieldIn", __classPrivateFieldIn);
3609 | exporter("__addDisposableResource", __addDisposableResource);
3610 | exporter("__disposeResources", __disposeResources);
3611 | exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
3612 | });
3613 | })))())).default;
^
TypeError: Cannot destructure property '__extends' from null or undefined value
Here are versions i am using
"@takumi-rs/image-response": "^0.73.1"
"@tanstack/react-router": "^1.168.3"
"@tanstack/react-start": "^1.167.5"
"nitro": "^3.0.260311-beta"
When i remove @takumi-rs/image-response everything works fine
and this is my vite config
const config = defineConfig({
plugins: [
mdx(await import("./source.config")),
tsconfigPaths({ projects: ["./tsconfig.json"] }),
tailwindcss(),
tanstackStart(),
nitro({
traceDeps: ["@takumi-rs/core"],
}),
viteReact(),
],
server: { port: 4000 },
});
Steps to Reproduce
Expected Behavior
Actual Behavior
Reproduction Code
No response
Affected Package
@takumi-rs/image-response
Version
0.73.1
Operating System
macOS
Environment Details
Bun 1.3.9
Playground Link
No response
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working