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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.7.0
Plugin version
5.7.0
Node.js version
18.16.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
38
Description
When using bun to run fastify with the fastify autoload plugin, the code crashes with the following error:
124 |return join(__dirname, '..', 'file.js')
125 | }
126 |
127 |let fixTarget
128 |
129 |for (const filePath of callers) {
^
TypeError: undefined is not an object (evaluating 'callers')
at fixTarget (/home/notsql/Development/Flora/back-end/node_modules/pino/lib/transport.js:129:27)
at transport (/home/notsql/Development/Flora/back-end/node_modules/pino/lib/transport.js:114:21)
at normalizeArgs (/home/notsql/Development/Flora/back-end/node_modules/pino/lib/tools.js:311:15)
at pino (/home/notsql/Development/Flora/back-end/node_modules/pino/pino.js:87:27)
at createPinoLogger (/home/notsql/Development/Flora/back-end/node_modules/fastify/lib/logger.js:42:13)
at createLogger (/home/notsql/Development/Flora/back-end/node_modules/fastify/lib/logger.js:101:17)
at fastify (/home/notsql/Development/Flora/back-end/node_modules/fastify/fastify.js:137:32)
at build (/home/notsql/Development/Flora/back-end/src/main.ts:7:14)
at /home/notsql/Development/Flora/back-end/src/server.ts:7:15
Steps to Reproduce
Setup fastify with fastify autoloader plugin.
Ensure all dependencies are installed
bun install
Run the code
bun run index.ts
Expected Behavior
No response
The text was updated successfully, but these errors were encountered:
notsql
changed the title
Fastify Autoload does not work with Bun.js
Fastify Autoload does not work with Bun.js or deno
Jul 2, 2023
It seems to be an issue in pino. But to be honest, if you want to use bun or deno, than you should investigate deeper and provide PRs to get things compatible.
Prerequisites
Fastify version
4.7.0
Plugin version
5.7.0
Node.js version
18.16.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
38
Description
When using bun to run fastify with the fastify autoload plugin, the code crashes with the following error:
Steps to Reproduce
Setup fastify with fastify autoloader plugin.
Ensure all dependencies are installed
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: