T
TanStack3mo ago
fair-rose

ssr error message is hard to understand

most of these stack trace frames land in vite and the actual error seems like an artifact of compiled code.
Error in renderToPipeableStream: SyntaxError: Unexpected identifier '_'
at new AsyncFunction (<anonymous>)
at ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:909:20)
at ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:80)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async eval (/Users/clo/work/app/client/src/components/<redacted>:3:1)
at async ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:910:3)
at async ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:59)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async eval (/Users/clo/work/app/client/src/components/<redacted>:12:1)
at async ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:910:3)
at async ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:59)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async eval (/Users/clo/work/app/client/src/tanstack-routes/_<redacted>/_<redacted>/<redacted>.$id.tsx:1:1)
at async ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:910:3)
at async ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:59)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async Promise.all (index 0) { componentStack: [Getter] }
Error in renderToPipeableStream: SyntaxError: Unexpected identifier '_'
at new AsyncFunction (<anonymous>)
at ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:909:20)
at ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:80)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async eval (/Users/clo/work/app/client/src/components/<redacted>:3:1)
at async ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:910:3)
at async ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:59)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async eval (/Users/clo/work/app/client/src/components/<redacted>:12:1)
at async ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:910:3)
at async ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:59)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async eval (/Users/clo/work/app/client/src/tanstack-routes/_<redacted>/_<redacted>/<redacted>.$id.tsx:1:1)
at async ESModulesEvaluator.runInlinedModule (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:910:3)
at async ModuleRunner.directRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1119:59)
at async ModuleRunner.cachedRequest (file:///Users/clo/work/app/node_modules/vite/dist/node/module-runner.js:1037:73)
at async Promise.all (index 0) { componentStack: [Getter] }
in general this is kind of an anoying to read error. i'm a little new to using vite for a larger project and im not sure if this is something for them or something start specifically should improve. (otherwise start has been very fun so far. i've ported one of the work app's pages over from next and it's like magic how much simpler everything is)
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?