Closed chichi13 closed 1 month ago
Hi everyone,
I can reproduce this manually with a base project by running
node ace build
pnpm i --prod
)node bin/server.js
show the same output$ node bin/server.js
Error: unable to determine transport target for "pino-pretty"
⁃ fixTarget
node_modules/.pnpm/pino@8.21.0/node_modules/pino/lib/transport.js:146
⁃ anonymous
node_modules/.pnpm/pino@8.21.0/node_modules/pino/lib/transport.js:93
⁃ transport
node_modules/.pnpm/pino@8.21.0/node_modules/pino/lib/transport.js:90
EDIT: Move pino-pretty
from devDependencies to dependencies fixed the issue. But don't know if it's a correct way as the dependencies was put in devDependencies in a base project.
Make sure you run your app with NODE_ENV=production
when running in production
Good point @thetutlage , working with NODE_ENV=production
Package version
6.13.1
Describe the bug
I have taken the dockerfile from the docs:
But when I run it I have the following error:
Do you have any idea on how can I fix this?
Reproduction repo
private repo