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

5 Replies
foreign-sapphire•2mo ago
it logs in the terminal if your console log runs on the server
so in loaders, server functions etc
extended-salmon•2mo ago
are you using router in a SPA? or server side with start
provincial-silverOP•2mo ago
I use spa mode @Manuel Schiller
So there is not possible to run that in terminal??
extended-salmon•2mo ago
to run what in the terminal?
when you chose spa mode you explicitly want client side rendering
xenophobic-harlequin•2mo 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.