You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raised an issue on esbuild-plugin-pino too (wd-David/esbuild-plugin-pino#173) as I'm not sure where the issues lies. I've looked into it a bit and I think this is where the issue lies:
I'm getting the following error when running my app:
"Error: Cannot find module '/var/task/dist/lib/TcpConnection'",
"Require stack:",
"- /var/task/dist/pino-socket.js",
" at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)",
" at Module._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 Object.<anonymous> (/var/task/node_modules/pino-socket/psock.js:5:30)",
" at Module._compile (node:internal/modules/cjs/loader:1358:14)",
" at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)",
" at Module.load (node:internal/modules/cjs/loader:1208:32)",
" at Module._load (node:internal/modules/cjs/loader:1024:12)",
" at cjsLoader (node:internal/modules/esm/translators:348:17)"
This is because pino-socket has the following line in its main entrypoint:
Raised an issue on esbuild-plugin-pino too (wd-David/esbuild-plugin-pino#173) as I'm not sure where the issues lies. I've looked into it a bit and I think this is where the issue lies:
I'm getting the following error when running my app:
This is because pino-socket has the following line in its main entrypoint:
which is being transpiled by esbuild to
which doesn't work as only a single file
pino-socket.js
is being created for it.Is there a way around this or is there an issue with my config?
pino config:
build:
The text was updated successfully, but these errors were encountered: