Closed tuan-dd closed 1 year ago
Can you please copy and paste your log output from the ~/.console-ninja/trace.log
file in your user home directory? Prior to copying, please clear the file, then start Console Ninja on the project and then copy/paste the log.
14:08:26.683 info extension stopping host
14:08:26.697 info host removing cache folder: bf883df14349da3effe677a33d6caecf
14:08:26.709 info buildHook-18760 client disconnected: 1006
14:08:26.710 info buildHook-12128 client disconnected: 1006
14:08:26.710 info buildHook-18760 disconnected from host: 52265
14:08:26.710 info buildHook-12128 disconnected from host: 52265
14:08:26.711 info extension client disconnected: 1006
14:08:26.710 info buildHook-18760 disconnected from all hosts
14:08:26.710 info buildHook-12128 disconnected from all hosts
14:08:26.724 info buildHook-10276 client disconnected: 1006
14:08:26.725 info buildHook-10276 disconnected from host: 52265
14:08:26.725 info buildHook-10276 disconnected from all hosts
14:08:27.130 info extension host process output: port:[52265]
14:08:27.094 info host ------------ starting ------------
14:08:27.130 info extension
14:08:27.157 info host client connected: extension { address: '::', family: 'IPv6', port: 52265 }
14:08:27.298 info host starting host: {"extensionFolder":"c:\\Users\\tuanp\\.vscode\\extensions\\wallabyjs.console-ninja-0.0.110","runtimeHookFile":"c:\\Users\\tuanp\\.vscode\\extensions\\wallabyjs.console-ninja-0.0.110\\out\\runtimeHook\\tracer.js","globalErrorHandlerFile":"c:\\Users\\tuanp\\.vscode\\extensions\\wallabyjs.console-ninja-0.0.110\\out\\runtimeHook\\errorHandler.js","filesToInstrument":[{"path":"C:\\Users\\tuanp\\Desktop\\example\\material-next-ts\\material-next-ts\\pages\\_document.tsx"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\material-next-ts\\material-next-ts\\pages\\about.tsx"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\tasks\\collect-issue.task.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\subcribers\\consumer.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\services\\access.service.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\helpers\\check.connect.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\dbs\\init.mongodb.lv0.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\configs\\config.i18n.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\configs\\config.redis.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\controllers\\redis.controller.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\app.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\server.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\auth\\authUtils.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\src\\auth\\checkAuth.js"},{"path":"C:\\Users\\tuanp\\Desktop\\example\\ecommerce-backend\\guides\\cpu-check.js"},{"path":"c:\\Users\\tuanp\\Desktop\\example\\material-next-ts\\material-next-ts\\pages\\about.tsx"},{"path":"c:\\Users\\tuanp\\Desktop\\example\\material-next-ts\\material-next-ts\\pages\\_document.tsx"}],"debug":false,"config":{"dateTimeFormat":"hh:mm:ss.SSS","openLinksInEditor":true,"maxLogViewerEntries":15000,"fontSize":10,"autoClearLogViewerOnFileChanges":true,"outputMode":"Beside File","captureFunctions":false,"enableProFeatures":true,"toolsToAutoPatch":["vite","jest","webpack","next.js","cypress","http-server","serve","nuxt","remix","qwik","hydrogen","live-server","live-preview"]},"allowedHosts":["localhost","127.0.0.1","example.cypress.io","Tuan-dd","192.168.1.33"],"host":"127.0.0.1"}
14:08:27.303 info host worker Starting Host Worker...
14:08:27.316 info host starting tools discovery and integration
14:08:27.324 info host looking for tools to patch
14:08:27.892 info host found 2 tool file(s) to patch
14:08:27.895 info host patching C:\Users\tuanp\Desktop\example\material-next-ts\material-next-ts\node_modules\next\dist\compiled\webpack\bundle5.js
14:08:27.896 info host patching C:\Users\tuanp\Desktop\example\material-next-ts\material-next-ts\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
14:08:27.955 ERR! host failed to apply build hook related patches: Error: next.js: Error: Expected line 'exports.pitch = pitch;' is not found.;
14:08:27.961 info host completed tools discovery and integration
14:08:28.222 info buildHook-10276 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, nuxt, remix, qwik, hydrogen, live-server, live-preview, node
14:08:28.223 info buildHook-10276 running tools: next.js
14:08:28.241 info host client connected: buildHook { address: '::', family: 'IPv6', port: 52265 }
14:08:28.245 info buildHook-10276 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, nuxt, remix, qwik, hydrogen, live-server, live-preview, node
14:08:28.245 info buildHook-10276 running tools: next.js
14:08:28.331 info buildHook-10276 file processed (stat): 1 log points, error handler: false
14:08:28.347 info buildHook-10276 file processed (stat): 1 log points, error handler: false
14:08:28.539 info buildHook-18760 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, nuxt, remix, qwik, hydrogen, live-server, live-preview, node
14:08:28.539 info buildHook-18760 running tools: next.js
14:08:28.544 info host client connected: buildHook { address: '::', family: 'IPv6', port: 52265 }
14:08:28.545 info buildHook-18760 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, nuxt, remix, qwik, hydrogen, live-server, live-preview, node
14:08:28.545 info buildHook-18760 running tools: next.js
14:08:28.573 info buildHook-12128 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, nuxt, remix, qwik, hydrogen, live-server, live-preview, node
14:08:28.573 info buildHook-12128 running tools: next.js
14:08:28.576 info host client connected: buildHook { address: '::', family: 'IPv6', port: 52265 }
14:08:28.577 info buildHook-12128 allowed tools: vite, jest, webpack, next.js, cypress, http-server, serve, nuxt, remix, qwik, hydrogen, live-server, live-preview, node
14:08:28.577 info buildHook-12128 running tools: next.js
14:08:43.360 ERR! extension host process error: (node:19792) Warning: Closing file descriptor 6 on garbage collection
14:08:43.360 ERR! extension (Use `Code --trace-warnings ...` to show where the warning was created)
14:08:43.360 ERR! extension (node:19792) [DEP0137] DeprecationWarning: Closing a FileHandle object on garbage collection is deprecated. Please close FileHandle objects explicitly using FileHandle.prototype.close(). In the future, an error will be thrown if a file descriptor is closed during garbage collection.
14:08:43.360 ERR! extension
in my trace
Thanks for reporting the issue. There was a breaking change in the latest next.js version. We have fixed our integration and released the fix in v.0.0.111.
After installing the update, please also delete project's node_modules
and .next
folders, and run npm i
(or yarn if you are using it).
Didn’t fix it for me... :(
@VladislavSmolyanoy As a check, please try cloning your repo to a fresh folder, start it with Console Ninja running and see if it's working. If it's not working, please create a separate issue using bug
template and attach the details requested in te template.
@ArtemGovorov Just removing .next and node_modules didn’t fix it. I got it to work by additionally reinstalling the extension 😀
@ArtemGovorov Thank you so much for your kind support, it works fine
What happened?
I new project with next.js , but console.log not working , i run in server, or vite it work normal
Version
latest , node 18
Steps to reproduce (or sample repo)
Log output