puppeteer: Failed to launch the browser process!
Hi, i am using puppeteer to create PDF from HTML. The goal is to generate invoices & quotes from an html page. The API works fine, but every time i'm trying to create a PDF i encounter the following error:
And the only related code in my project is
I'm using Nest.js.
Thanks in advance
project id: 245b1448-066b-4ded-9cac-b414f50b53fc
Solution:Jump to solution
thank you @Brody for your help !
The solution was to add chrome in the dockerfile and change the PUPPETEER env variable
```FROM node:18-alpine as builder
...
7 Replies
Project ID:
245b1448-066b-4ded-9cac-b414f50b53fc
<:blob_help:1149662715409874944>
try adding a nixpacks.toml to your project with this in it
i still have the same error, do i have to specify something in railway? i use a dockerfile to build the api
then you need to install those apt packages with your dockerfile
ok thank you i'm gonna try that
and lyk 🙂
Solution
thank you @Brody for your help !
The solution was to add chrome in the dockerfile and change the PUPPETEER env variable