Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Error on startup of first example #64

Open
witcradg opened this issue Apr 25, 2023 · 6 comments
Open

Error on startup of first example #64

witcradg opened this issue Apr 25, 2023 · 6 comments

Comments

@witcradg
Copy link

510 git clone https://github.com/gluon-framework/examples.git
511 ll
512 cd examples
513 ll
514 cd gluworld
515 npm install
516 node .
517 h
dean@pop-os ~/.../examples/gluworld (main) $ node .
[Gluon] starting browser...
file:///home/dean/projects/gatsby/LIBRARY/gluon/examples/gluworld/node_modules/@gluon-framework/gluon/src/index.js:198
const [ browserPath, browserName ] = await findBrowserPath(forceBrowser, forceEngine);
^

TypeError: (intermediate value) is not iterable
at startBrowser (file:///home/dean/projects/gatsby/LIBRARY/gluon/examples/gluworld/node_modules/@gluon-framework/gluon/src/index.js:198:40)
at async Module.open (file:///home/dean/projects/gatsby/LIBRARY/gluon/examples/gluworld/node_modules/@gluon-framework/gluon/src/index.js:255:19)
at async file:///home/dean/projects/gatsby/LIBRARY/gluon/examples/gluworld/index.js:17:3

Node.js v18.12.1
dean@pop-os ~/.../examples/gluworld (main) $

Happy to help any way I can.

@CanadaHonk
Copy link
Contributor

What browsers do you have installed on your system?

@witcradg
Copy link
Author

chrome and firefox

@CanadaHonk
Copy link
Contributor

If you have them installed "unusually" (snap/flatpak/etc) it might not currently pick it up. How can you launch either/both from a terminal?

@witcradg
Copy link
Author

witcradg commented Apr 25, 2023

I'm using !Pop_os so it's a flatpak install
dean@pop-os ~/.../examples/gluworld (main) $ sudo find / -name "google-chrome"
[sudo] password for dean:
/usr/share/bash-completion/completions/google-chrome
/home/dean/.var/app/com.google.Chrome/config/google-chrome
/home/dean/.var/app/com.google.Chrome/cache/google-chrome
/home/dean/.local/share/flatpak/app/com.google.Chrome/x86_64/stable/1fe6a66f58297a21d2aa066000065ac0155a70f2e6a7d5628800432a9ce9f40d/files/extra/google-chrome
/home/dean/.local/share/flatpak/app/com.google.Chrome/x86_64/stable/1fe6a66f58297a21d2aa066000065ac0155a70f2e6a7d5628800432a9ce9f40d/files/extra/cron/google-chrome

I'll go figure out how I can launch from a terminal.

@witcradg
Copy link
Author

witcradg commented Apr 25, 2023

I can run it from the command line with this command:
flatpak run com.google.Chrome

FWIW: This runs Firefox
flatpak run org.mozilla.firefox

@witcradg
Copy link
Author

of course, I can also use
/usr/bin/flatpak run com.google.Chrome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants