Closed AnotiaWang closed 4 weeks ago
When using Console Ninja with vConsole, the trace for console.error doesn't work properly.
console.error
console.log works well:
console.log
While console.error don't:
v1.0.353
npm run dev
Here's a repository created with npm create vite@latest and React. https://github.com/AnotiaWang/console-ninja-vconsole-repro
npm create vite@latest
The log code is in src/App.tsx.
11:55:15.804 info host scheduling tools patching 11:55:17.804 info host looking for tools to patch 11:55:17.836 info host found 2 tool file(s) to patch 11:55:17.836 info host patching /users/anoti/documents/project/console-ninja-vconsole-repro/node_modules/vite/bin/vite.js 11:55:17.888 info host Host's startup and patch time: 1230317 ms 11:55:18.577 info host scheduling tools patching 11:55:19.138 info buildHook-4037 installing build hook for vite at /users/anoti/documents/project/console-ninja-vconsole-repro, node v20.11.0 11:55:19.142 info buildHook-4037 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, node 11:55:19.142 info buildHook-4037 running tools: vite 11:55:19.144 info buildHook-4037 installing fs interceptor 11:55:19.146 info host client connected: buildHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:55:19.149 info buildHook-4037 allowed tools: vite, angular, jest, webpack, next.js, nest.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless, astro, node 11:55:19.149 info buildHook-4037 running tools: vite 11:55:19.407 info buildHook-4037 file processed (stat): 0 log points, error handler: true, network logging handler: true 11:55:20.579 info host looking for tools to patch 11:55:20.607 info host found 2 tool file(s) to patch 11:55:20.607 info host patching /users/anoti/documents/project/console-ninja-vconsole-repro/node_modules/vite/bin/vite.js 11:55:20.659 info host Host's startup and patch time: 1233088 ms 11:55:21.028 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:55:21.043 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:06.600 info buildHook-4037 file processed (promise): 0 log points, error handler: false, network logging handler: false 11:56:07.652 info host client disconnected: runtimeHook 1001 11:56:07.652 info host client disconnected: runtimeHook 11:56:07.653 info host client disconnected: runtimeHook 1001 11:56:07.653 info host client disconnected: runtimeHook 11:56:07.778 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:07.790 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:18.895 info buildHook-4037 file processed (promise): 1 log points, error handler: false, network logging handler: false 11:56:19.198 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:21.796 info host client disconnected: runtimeHook 1001 11:56:21.797 info host client disconnected: runtimeHook 11:56:21.797 info host client disconnected: runtimeHook 1001 11:56:21.797 info host client disconnected: runtimeHook 11:56:21.797 info host client disconnected: runtimeHook 1001 11:56:21.797 info host client disconnected: runtimeHook 11:56:21.920 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:21.931 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:22.013 info host client connected: runtimeHook { address: '127.0.0.1', family: 'IPv4', port: 65351 } 11:56:36.181 info buildHook-4037 file processed (promise): 1 log points, error handler: false, network logging handler: false 11:57:57.815 info host client disconnected: runtimeHook 1001 11:57:57.819 info host client disconnected: runtimeHook 11:57:57.820 info host client disconnected: runtimeHook 1001 11:57:57.822 info host client disconnected: runtimeHook 11:57:57.824 info host client disconnected: runtimeHook 1001 11:57:57.829 info host client disconnected: runtimeHook 12:03:57.209 info host client disconnected: buildHook 1006 12:03:57.209 info host client disconnected: buildHook 1006, has clients false
Thanks for reporting the problem. This is fixed in the latest version of Console Ninja, v1.0.354+; it should be available on the marketplace shortly.
v1.0.354+
What happened?
When using Console Ninja with vConsole, the trace for
console.error
doesn't work properly.console.log
works well:While
console.error
don't:Version
v1.0.353
CLI command to start your dev tool
npm run dev
Steps to reproduce (or sample repo)
Here's a repository created with
npm create vite@latest
and React. https://github.com/AnotiaWang/console-ninja-vconsole-reproThe log code is in src/App.tsx.
Log output