wallabyjs / console-ninja

Repository for Console Ninja questions and issues
https://console-ninja.com
Other
351 stars 15 forks source link

[Bug]: Wont work with Nuxt 3 #208

Closed saschafuchs closed 9 months ago

saschafuchs commented 9 months ago

What happened?

I expect to see the response of the Console.logs in VSCode, as it works in Nuxt 2 projects. Unfortunately, even with multiple reloads and restarts, there is no display of the Console.logs response in the editor.

Version

0.0.227

Steps to reproduce (or sample repo)

Install Nuxt 3, adding a simple math function and return the result in a console.log

https://github.com/saschafuchs/codeninjan3

Log output

44   | 18:43:28.799 info extension
  45   │ 18:43:28.805 info host client connected: extension { address: '::', family: 'IPv6', port: 63290 }
  46   │ 18:43:28.832 info host starting host: {"extensionFolder":"/Users/saschafuchs/.vscode/extensions/wallabyjs.console-ninja-0.0.227","runtimeHookFile":"/Users/sasch
       │ afuchs/.vscode/extensions/wallabyjs.console-ninja-0.0.227/out/runtimeHook/tracer.js","globalErrorHandlerFile":"/Users/saschafuchs/.vscode/extensions/wallabyjs.c
       │ onsole-ninja-0.0.227/out/runtimeHook/errorHandler.js","filesToInstrument":[{"path":"/users/saschafuchs/develop/work/n3test/pages/index.vue","reason":"search"},{
       │ "path":"/Users/saschafuchs/develop/work/n3test/pages/index.vue","reason":"open"},{"path":"/Users/saschafuchs/develop/work/n3test/app.vue","reason":"open"},{"pat
       │ h":"/Users/saschafuchs/develop/work/n3test/nuxt.config.ts","reason":"open"}],"debug":false,"config":{"dateTimeFormat":"HH:mm:ss.SSS","showDateTime":true,"instal
       │ lBinToPath":true,"openLinksInEditor":true,"maxLogViewerEntries":15000,"fontSize":10,"autoClearLogViewerOnFileChanges":true,"outputMode":"Beside File","captureFu
       │ nctions":false,"searchUrl":"https://www.google.com/search?q={query}","enableProFeatures":true,"toolsToAutoPatch":["vite","jest","webpack","next.js","cypress","h
       │ ttp-server","serve","live-server","nuxt","remix","qwik","hydrogen","serverless","astro"],"showErrors":true,"showLogsOnlyFromOpenedFiles":false,"showLogsFromLogP
       │ ointsOnly":false,"showLogsFromMultipleRunningToolsTogether":false},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","sfuchs-mbp-5.fritz.box","localh
       │ ost:3000","192.168.178.80"],"host":"127.0.0.1"}
  47   │ 18:43:28.845 info host starting tools discovery and integration
  48   │ 18:43:28.850 info host looking for tools to patch
  49   │ 18:43:28.897 info host worker Starting Host Worker...
  50   │ 18:43:29.042 info host found 2 tool file(s) to patch
  51   │ 18:43:29.042 info host patching /users/saschafuchs/develop/work/n3test/node_modules/vite/bin/vite.js
  52   │ 18:43:29.042 info host patching /users/saschafuchs/develop/work/n3test/node_modules/nuxi/dist/chunks/dev.mjs
  53   │ 18:43:29.043 info host completed tools discovery and integration
  54   │ 18:43:29.484 info buildHook-95649 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless
       │ , astro, node
  55   │ 18:43:29.485 info buildHook-95649 running tools: nuxt
  56   │ 18:43:29.489 info host client connected: buildHook { address: '::', family: 'IPv6', port: 63290 }
  57   │ 18:43:29.490 info buildHook-95649 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, live-server, nuxt, remix, qwik, hydrogen, serverless
       │ , astro, node
  58   │ 18:43:29.490 info buildHook-95649 running tools: nuxt
NikGovorov commented 9 months ago

Thanks for reporting the issue. It is fixed and the fix is published in v0.0.228 of the extension.