[v5] Error on build adonis with 'pino-pretty' #1892
-
Dependencies versions@adonisjs/ace: 6.0.0 Steps (when all dependencies installed):
Error: Missing `pino-pretty` module: `pino-pretty` must be installed separately
at getPrettyStream (/home/satheler/Documents/my_project/repos/build/node_modules/pino/lib/tools.js:188:11)
at normalizeArgs (/home/satheler/Documents/my_project/repos/build/node_modules/pino/lib/tools.js:351:16)
at Object.pino [as default] (/home/satheler/Documents/my_project/repos/build/node_modules/pino/pino.js:78:28)
at Object.getPino (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/logger/build/src/getPino.js:22:89)
at new Logger (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/logger/build/src/Logger.js:49:43)
at Object.callback (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/logger/build/providers/LoggerProvider.js:32:20)
at Ioc.resolveBinding (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/fold/build/src/Ioc/index.js:94:51)
at Ioc.resolve (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/fold/build/src/Ioc/index.js:133:29)
at Ioc.use (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/fold/build/src/Ioc/index.js:290:26)
at Object.callback (/home/satheler/Documents/my_project/repos/build/node_modules/@adonisjs/lucid/build/providers/DatabaseProvider.js:24:43) Why do you need to move build folder to another location?This example to move folder is like happening working with docker. Dockerfile exampleFROM node:lts
ADD ./build ./
RUN yarn install --production
CMD node server.js |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey @satheler I've fixed this by moving the I'm also using Docker, I can share my Dockerfile if you want. |
Beta Was this translation helpful? Give feedback.
Hey @satheler I've fixed this by moving the
pino-pretty
package fromdevDependencies
to productiondependencies
.I'm also using Docker, I can share my Dockerfile if you want.