'Error: Failed to launch the browser process when deploy node.js app to heroku

i tried to depoy my node.js app to heroku with heroku cli, but get error like this I am very confused, how to fix it?

2022-04-15T02:42:17.424207+00:00 app[web.1]: Starting child process with 'node app.js'
2022-04-15T02:42:17.767902+00:00 app[web.1]: App Running!
2022-04-15T02:42:18.337332+00:00 app[web.1]: /app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241
2022-04-15T02:42:18.337344+00:00 app[web.1]:             reject(new Error([
2022-04-15T02:42:18.337344+00:00 app[web.1]:                    ^
2022-04-15T02:42:18.337345+00:00 app[web.1]: 
2022-04-15T02:42:18.337345+00:00 app[web.1]: Error: Failed to launch the browser process!
2022-04-15T02:42:18.337347+00:00 app[web.1]: [0415/024217.803543:FATAL:zygote_host_impl_linux.cc(117)] No usable sandbox! 
Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for
 more information on developing with the SUID sandbox. 
If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
2022-04-15T02:42:18.337347+00:00 app[web.1]: #0 0x5574559a5469 base::debug::CollectStackTrace()
2022-04-15T02:42:18.337348+00:00 app[web.1]: #1 0x55745590bf33 
....
....
2022-04-15T02:42:18.340961+00:00 app[web.1]: Program node app.js exited with code 1

this is my code https://github.com/ghazi-coder/whatsapp-bottttt



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source