T
TanStack•2mo ago
correct-apricot

Build error using Start with Cloudflare

[nitro 2:43:38 AM] ERROR Error: Cannot resolve "tanstack-start-route-tree:v" from "/Users/zeeshan/src/dashboard/node_modules/.pnpm/@tanstack+start-server-core@1.124.0/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js" and externals are not allowed!


undefined

error during build:
Error: Cannot resolve "tanstack-start-route-tree:v" from "/Users/zeeshan/src/dashboard/node_modules/.pnpm/@tanstack+start-server-core@1.124.0/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js" and externals are not allowed!
[nitro 2:43:38 AM] ERROR Error: Cannot resolve "tanstack-start-route-tree:v" from "/Users/zeeshan/src/dashboard/node_modules/.pnpm/@tanstack+start-server-core@1.124.0/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js" and externals are not allowed!


undefined

error during build:
Error: Cannot resolve "tanstack-start-route-tree:v" from "/Users/zeeshan/src/dashboard/node_modules/.pnpm/@tanstack+start-server-core@1.124.0/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js" and externals are not allowed!
8 Replies
xenial-black
xenial-black•2mo ago
I don't think that's a good answer to OP's question. I am the one who asked the question on that post you're mentioning and I still cannot ship my app because I still get this exact bug!
multiple-amethyst
multiple-amethyst•2mo ago
Apologies, I didn't realise that the problem remained unsolved
xenial-black
xenial-black•2mo ago
No worries I just wanted to point that out so others do not think it as well 😄
useful-bronze
useful-bronze•2mo ago
I am seeing a similar one, mine reads: [nitro 2:47:48 PM] ERROR Error: Cannot resolve "tanstack-start-server-fn-manifest:v" from "/Users/ramonvanraaij/Developer/stuff-to-watch/node_modules/.pnpm/@tanstack+start-server-core@1.124.2/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js" and externals are not allowed! (I am on the latest versions of all packages, for @tanstack/react-start that is 1.124.2)
xenial-black
xenial-black•2mo ago
From what i see here in discord this was fixed in v1.121.30 but I am seeing exatcly the same error
firm-tan
firm-tan•2mo ago
i'm also seeing this error- am on 1.123.2 so if anyone has found any resolution please post here!
useful-bronze
useful-bronze•2mo ago
this is now fixed, apparently! I was able to successfully build and deploy to cloudflare today!

Did you find this page helpful?