Open macro0000 opened 5 months ago
Also running into this. Would love a fix.
My issue ended up being a logger.info that weirdly only appears when the list:routes is run through this extension. So it threw off the JSON parsing because of a log at the tail.
Error: Command failed with exit code 1: node --dns-result-order=ipv4first ace list:routes --json
node:internal/modules/run_main:129
triggerUncaughtException(
^
Error: Failed to load native binding
at Object.
Error: Cannot find module './swc.win32-x64-msvc.node'
Require stack:
- c:\Projects\hello-world\node_modules\@swc\core\binding.js
- c:\Projects\hello-world\node_modules\@swc\core\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\transpilers\swc.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\esm.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\esm.mjs
at Function.<anonymous> (node:internal/modules/cjs/loader:1145:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (c:\Projects\hello-world\node_modules\@cspotcode\source-map-support\source-map-support.js:811:30)
at Function._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at requireNative (c:\Projects\hello-world\node_modules\@swc\core\binding.js:91:16)
at Object.<anonymous> (c:\Projects\hello-world\node_modules\@swc\core\binding.js:306:17)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Object..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32),
Error: Cannot find module '@swc/core-win32-x64-msvc'
Require stack:
- c:\Projects\hello-world\node_modules\@swc\core\binding.js
- c:\Projects\hello-world\node_modules\@swc\core\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\transpilers\swc.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\index.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\dist\esm.js
- c:\Projects\hello-world\node_modules\ts-node-maintained\esm.mjs
at Function.<anonymous> (node:internal/modules/cjs/loader:1145:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (c:\Projects\hello-world\node_modules\@cspotcode\source-map-support\source-map-support.js:811:30)
at Function._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at requireNative (c:\Projects\hello-world\node_modules\@swc\core\binding.js:96:16)
at Object.<anonymous> (c:\Projects\hello-world\node_modules\@swc\core\binding.js:306:17)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Object..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
] }
Node.js v20.16.0
I use the logger inside a preload file. And if this preload file will do some log output the extension can´t fetch the routes.
The command node ace list:routes
runs fine in the terminal!
Perhaps it´s an idea to disable the logger when the extension try to fetch the routes???
Bye, René