T
TanStack•17h ago
unwilling-turquoise

Error reading routerStream: Invalid state: Controller is already closed error

i keep getting this error, however it does not impact my application anyhow - has anyone experienced this error yet? Where should i search? code: 'ERR_INVALID_STATE' } Error reading routerStream: TypeError [ERR_INVALID_STATE]: Invalid state: Controller is already closed at ReadableStreamDefaultController.enqueue (node:internal/webstreamtb/Documents/Developer/Tatb/Documents/Developer/Tanstack-start-convex/node_modules/.pnpm/@tanstack+router-core@1.132.37/node_modules/@tanstack/router-core/dist/esm/ssr/transformStreamWithRouter.js:29:18) at file:///C:/Users/vestb/Documents/Developer/Tanstack-start-convex/node_modules/.pnpm/@tanstack+router-core@1.132.37/node_modules/@tanstack/router-core/dist/esm/ssr/transformStreamWithRouter.js:94:26 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ERR_INVALID_STATE'
11 Replies
eastern-cyan
eastern-cyan•15h ago
Me too 😅 I dont know what can be the cause
fascinating-indigo
fascinating-indigo•15h ago
need a reproducer for this are you both using the query integration?
eastern-cyan
eastern-cyan•14h ago
No im not
deep-jade
deep-jade•14h ago
I got the same error. I just ran bun create @tanstack/start@latest --framework solid with these options
{
"projectName": "test",
"mode": "file-router",
"typescript": true,
"tailwind": true,
"packageManager": "bun",
"git": true,
"version": 1,
"framework": "solid",
"chosenAddOns": [
"biome",
"start",
"tanstack-query"
]
}
{
"projectName": "test",
"mode": "file-router",
"typescript": true,
"tailwind": true,
"packageManager": "bun",
"git": true,
"version": 1,
"framework": "solid",
"chosenAddOns": [
"biome",
"start",
"tanstack-query"
]
}
the console then says These exports from "/home/rasib/projects/reading-app/test/src/routes/demo.tanstack-query.tsx" will not be code-split and will increase your bundle size so removed the export at the end of the file then I get the above error
fascinating-indigo
fascinating-indigo•14h ago
hm the warning should not be relevant
deep-jade
deep-jade•14h ago
the fix is deleting the route gen file and re generating it.
fascinating-indigo
fascinating-indigo•14h ago
the fix for what? for the "Error reading routerStream:" error?
deep-jade
deep-jade•14h ago
yes.
fascinating-indigo
fascinating-indigo•14h ago
should not be related really can you please push the reproducer repo to github?
deep-jade
deep-jade•14h ago
ok
deep-jade
deep-jade•14h ago
GitHub
GitHub - rasibn/tanstack-bug
Contribute to rasibn/tanstack-bug development by creating an account on GitHub.

Did you find this page helpful?