wallabyjs / console-ninja

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

[Bug]: Warnings on upgrading to Next.js 14 #226

Closed colinswan closed 10 months ago

colinswan commented 10 months ago

What happened?

After upgrading to Next.js 14 from 13.4, a series of webpack warnings appear in the console relating to path resolution involving Wallaby.js. I didn't have this issue prior to upgrading.

Version

v1.0.250

Steps to reproduce (or sample repo)

  1. Have Console Ninja extension installed on VSCode.
  2. Upgrade project to Next.js 14 from 13.4.
  3. Run the project and observe the console.

Log output

<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving '../../../../../../../../../.vscode/extensions/wallabyjs.console-ninja-1.0.250/out/buildhook/index' in C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack for build dependencies doesn't lead to expected result 'c:\users\colin\.vscode\extensions\wallabyjs.console-ninja-1.0.250\out\buildhook\index.js', but to 'C:\Users\Colin\.vscode\extensions\wallabyjs.console-ninja-1.0.250\out\buildhook\index.js' instead. Resolving dependencies are ignored for this path.
<w>  at resolve commonjs file ../../../../../../../../../.vscode/extensions/wallabyjs.console-ninja-1.0.250/out/buildhook/index (expected c:\users\colin\.vscode\extensions\wallabyjs.console-ninja-1.0.250\out\buildhook\index.js)
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\bundle5.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\bundle5.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\webpack.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\webpack.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\plugins\define-env-plugin.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\plugins\define-env-plugin.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\swc\index.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\swc\index.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
<w>  at resolve commonjs C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\loaders\next-swc-loader.js
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving '../../../../../../../../../.vscode/extensions/wallabyjs.console-ninja-1.0.250/out/buildhook/index' in C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack for build dependencies doesn't lead to expected result 'c:\users\colin\.vscode\extensions\wallabyjs.console-ninja-1.0.250\out\buildhook\index.js', but to 'C:\Users\Colin\.vscode\extensions\wallabyjs.console-ninja-1.0.250\out\buildhook\index.js' instead. Resolving dependencies are ignored for this path.
<w>  at resolve commonjs file ../../../../../../../../../.vscode/extensions/wallabyjs.console-ninja-1.0.250/out/buildhook/index (expected c:\users\colin\.vscode\extensions\wallabyjs.console-ninja-1.0.250\out\buildhook\index.js)
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\bundle5.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\bundle5.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\webpack.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\compiled\webpack\webpack.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\plugins\define-env-plugin.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\plugins\define-env-plugin.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\swc\index.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\swc\index.js
<w>  at file dependencies C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\loaders\next-barrel-loader.js
<w>  at file C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\loaders\next-barrel-loader.js
<w>  at resolve commonjs C:\Users\Colin\Desktop\SoftEngGraphDes\MyProjects\jm-electricals\node_modules\next\dist\build\webpack\loaders\next-barrel-loader.js
Kazzuk commented 10 months ago

Just to add onto this, I'm also getting the same issue in NextJS 14.0.2.

NikGovorov commented 10 months ago

Thanks for reporting the issue and your patience. The warning should not affect next.js or console ninja in any way. It disappears eventually (after several restarts), apparently, there is a bug in webpack caching on Windows. We're working on suppressing the warning completely.

NikGovorov commented 10 months ago

The warning should not appear in the latest extension version(v1.0.261).