T
TanStack2mo ago
provincial-silver

create-tsrouter-app didn't print debug console.log, warn, error in terminal.

hello i have a questions i create project using create-tsrouter-app, so realized that console.log, error warn or anything like that in the terminal, and i had to check the console in the browser?? any method or alternative way to enabale it in the terminal?? li
No description
5 Replies
foreign-sapphire
foreign-sapphire2mo ago
it logs in the terminal if your console log runs on the server so in loaders, server functions etc
extended-salmon
extended-salmon2mo ago
are you using router in a SPA? or server side with start
provincial-silver
provincial-silverOP2mo ago
I use spa mode @Manuel Schiller So there is not possible to run that in terminal??
extended-salmon
extended-salmon2mo ago
to run what in the terminal? when you chose spa mode you explicitly want client side rendering
xenophobic-harlequin
xenophobic-harlequin2mo ago
You could consider the vscode extension “console ninja” which lets you receive your console logs in the editor, but unless something is running on the server (server fn) when you log, it’s running in the browser and therefore will log to the browser.

Did you find this page helpful?