Browser Failed to Launch
I've gone to the github and reviewed all their support options. Only one relates to this issue, and that being that my node is below version 14. I'm at 16, so this shouldn't be a problem. The only other place I see, is the heroku section seen in SS 2. However, I can not figure out how to add this to my code, for it to function. Screenshot three supplies all my code files. I've tried adding it to the read and bot.js files. Both times it says "launch" is undefined. So ik I'm defiantly doing something wrong. @ me with possible solutions. Thanks!
28 Replies
Project ID:
N/A
N/A
It may be necessary to add the --no-sandbox argument when launching the browser, as suggested by loop_cat in the second search result.
⚠️ experimental feature
I'm aware, but I simply don't know how to lmao
ill take a more in depth look, could you send your repo?
404
its private
1 min
try now
works, ill have a look and get back to you
Why is my .env in there lmao
All g
woops
prob wanna move that into the service variables
ye doing that rn
Discord dm'ed me and reset it lol.
Pretty neat
thats insanely impressive
oh that was long ago, not the moment you made it public, still cool none the less
Welp, my gitignore just wont gnore the .env file lmao
It was within 2 seconds of it going public
I'm on MST so it's 2 hours behind EST
can't believe i just forgot about time zones, ignore that lol
lmao
the gameday.js file is using the conver-svg-to-png package which uses chrome. Then fails to launch
everything else works without flaw, but I'd like to use the converter for more commands. Just creating graphics within discord over launching photoshop is so nice. Partly cause there isn't photoshop mobile
okay i think i have found the solution
but first
delete the Procfile
Oh lol, that was for heroku I think
and then add a start command to your package.json like so
ohhh add it there
gotcha
not me still lost on how this relates to the error lmao
but yes, I've done that
it doesnt
okay so every time you call convertFile you will want to add the --no-sandbox arg like the errors tell you to and you do that like so
I'll give it a go rn
Good sir, you're amazing. Thank you so much for the help, I haven't actual took a course on JS so it's kind of a trial and error while using stack overflow and yt to solve issues. I really need to take a course lol
i mean i cant take all the credit
https://github.com/neocotic/convert-svg/issues/89#issuecomment-1367708714
oh lol
Guess I didn't search hard enough
thanks anyways, helped a ton
a tip for searching github issues, remove the default "is:issue is:open" and then search for your keyword
but, glad i could help 🙂
oh cool, ill use that going forward!