Window Manager is not available
ntime.dev.js:21:2877)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async U.render (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:3955)
    at async DevServer.runApi (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:598:9)
    at async NextNodeServer.handleCatchallRenderRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:269:37)
    at async DevServer.handleRequestImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\base-server.js:817:17)
    at async C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:339:20
    at async Span.traceAsyncFn (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\trace\trace.js:154:20)
    at async DevServer.handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:336:24)
    at async invokeRender (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:173:21)
    at async handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:350:24)
 GET /api/filesystem/thumbnail?filePath=Documents%2Fniko.png&size=100 500 in 17ms
Error reading image metadata: TypeError: image.metadataSync is not a function
    at eval (webpack-internal:///(api)/./src/pages/api/filesystem/list.js:62:44)
    at Array.map (<anonymous>)
    at handler (webpack-internal:///(api)/./src/pages/api/filesystem/list.js:43:25)
    at K (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:2877)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async U.render (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:3955)
    at async DevServer.runApi (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:598:9)
    at async NextNodeServer.handleCatchallRenderRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:269:37)
    at async DevServer.handleRequestImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\base-server.js:817:17)
    at async C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:339:20
    at async Span.traceAsyncFn (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\trace\trace.js:154:20)
    at async DevServer.handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:336:24)
    at async invokeRender (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:173:21)
    at async handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:350:24)
    at async requestHandlerImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:374:13)
Error reading image metadata: TypeError: image.metadataSync is not a function
    at eval (webpack-internal:///(api)/./src/pages/api/filesystem/list.js:62:44)
    at Array.map (<anonymous>)
    at handler (webpack-internal:///(api)/./src/pages/api/filesystem/list.js:43:25)
    at K (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:2877)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async U.render (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:3955)
    at async DevServer.runApi (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:598:9)
    at async NextNodeServer.handleCatchallRenderRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:269:37)
    at async DevServer.handleRequestImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\base-server.js:817:17)
    at async C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:339:20
    at async Span.traceAsyncFn (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\trace\trace.js:154:20)
    at async DevServer.handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:336:24)
    at async invokeRender (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:173:21)
    at async handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:350:24)
    at async requestHandlerImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:374:13)
Error reading image metadata: TypeError: image.metadataSync is not a function
    at eval (webpack-internal:///(api)/./src/pages/api/filesystem/list.js:62:44)
    at Array.map (<anonymous>)
    at handler (webpack-internal:///(api)/./src/pages/api/filesystem/list.js:43:25)
    at K (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:2877)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async U.render (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\compiled\next-server\pages-api.runtime.dev.js:21:3955)
    at async DevServer.runApi (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:598:9)
    at async NextNodeServer.handleCatchallRenderRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\next-server.js:269:37)
    at async DevServer.handleRequestImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\base-server.js:817:17)
    at async C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:339:20
    at async Span.traceAsyncFn (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\trace\trace.js:154:20)
    at async DevServer.handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\dev\next-dev-server.js:336:24)
    at async invokeRender (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:173:21)
    at async handleRequest (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:350:24)
    at async requestHandlerImpl (C:\Users\Enzo\Documents\nyko\node_modules\next\dist\server\lib\router-server.js:374:13)
 GET /api/filesystem/list?dir=%2F 200 in 20ms