Skip to content

starting browser-repl should print correct URL to console #1205

@SebAlbert

Description

@SebAlbert

Hi and thanks for an apparently very cool library!

I just tried starting out on Windows inside WSL2 with the npx quickstart. The WSL2 won't open a browser automagically when I start npx shadow-cljs browser-repl. Instead I took the terminal output and tried to GET / on the local IP, which redirected me to /dashboard, which only showed "Loading..." and nothing else, with the web-socket connected and sending ping and pong. I spent quite some time trying to figure out what could be wrong.

It was only after trying on another machine with a graphical environment where I saw that the automagically opened browser is pointed to a different URL (/repl-js/browser-repl). Typing this on the first machine with the WSL2 setting also immediately works. If only I had known this earlier. So, bottom line, I think the URL to open in the browser should be printed on the console when starting browser-repl in a vanilla quickstarted project.

N.B.: What is that dashboard anyway? Cannot seem to find that term in the UserGuide anywhere, though there are some closed Github issues containing that term.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions