T
TanStack7mo ago
frail-apricot

Im Really struggling to deploy Tanstack Start to Cloudflare

Im getting this error
Error: Failed to publish your Function. Got error: Uncaught Error: No such module "node:http".
imported from "bundledWorker-0.5912871363042873.mjs"
Error: Failed to publish your Function. Got error: Uncaught Error: No such module "node:http".
imported from "bundledWorker-0.5912871363042873.mjs"
# wrangler.toml
name = "vuudra-search"
main = "./.output/server/index.mjs"
compatibility_flags = ["nodejs_compat"]
compatibility_date = "2024-11-13"

[build]
command = "npm run build"
cwd = "."
# wrangler.toml
name = "vuudra-search"
main = "./.output/server/index.mjs"
compatibility_flags = ["nodejs_compat"]
compatibility_date = "2024-11-13"

[build]
command = "npm run build"
cwd = "."
and i used the recommened by https://tanstack.com/start/latest/docs/framework/react/hosting#cloudflare-pages but still get similar error
Error: Failed to publish your Function. Got error: Uncaught Error: No such module "node:http".
imported from "chunks/nitro/nitro.mjs"
Error: Failed to publish your Function. Got error: Uncaught Error: No such module "node:http".
imported from "chunks/nitro/nitro.mjs"
any ideas on why?
Hosting | TanStack Start React Docs
Hosting is the process of deploying your application to the internet so that users can access it. This is a critical part of any web development project, ensuring your application is available to the...
2 Replies
optimistic-gold
optimistic-gold7mo ago
Have you seen this? https://discord.com/channels/719702312431386674/1340989670900895764 no clue if it applies, thought to share nevertheless
frail-apricot
frail-apricotOP7mo ago
yeah it seems to be the same issue, their is still no fix right

Did you find this page helpful?