T
TanStack3mo ago
exotic-emerald

cloudflare-module target on Tanstack Start devinxi alpha debug error

When using cloudflare-module target on the Tanstack Start devinxi alpha I get the following error:
error during build:
Error: Cannot resolve "tanstack-start-route-tree:v"
error during build:
Error: Cannot resolve "tanstack-start-route-tree:v"
When I use netlify target, there is no issues. The error is coming from the loadVirtualModule.js and it also mentions no externals are allowed. Here is are the package versions I am using, I followed the guide to devinxi a project:
"@tanstack/react-router": "^1.121.0-alpha.22",
"@tanstack/react-router-devtools": "^1.121.0-alpha.22",
"@tanstack/react-router-with-query": "^1.121.0-alpha.22",
"@tanstack/react-start": "^1.121.0-alpha.26",
"@tanstack/react-router": "^1.121.0-alpha.22",
"@tanstack/react-router-devtools": "^1.121.0-alpha.22",
"@tanstack/react-router-with-query": "^1.121.0-alpha.22",
"@tanstack/react-start": "^1.121.0-alpha.26",
I am new to using Vite - is there a way I can help to debug this issue to better understand why it is happening? I did try using vite build -d which helped to show some information but didn't seem helpful to debugging the issue. If there is a better place to track issues with Cloudflare deployments please let me know.
1 Reply
jolly-crimson
jolly-crimson3mo ago
Take a look at https://github.com/bonadio/tanstack-start-cloudflare-workers it is working with version 1.121
GitHub
GitHub - bonadio/tanstack-start-cloudflare-workers
Contribute to bonadio/tanstack-start-cloudflare-workers development by creating an account on GitHub.

Did you find this page helpful?