Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Running the samlpes on WSL2 (Ubuntu) #58

Open
mheiniger opened this issue Jul 25, 2020 · 1 comment
Open

Running the samlpes on WSL2 (Ubuntu) #58

mheiniger opened this issue Jul 25, 2020 · 1 comment

Comments

@mheiniger
Copy link

When i clone and run the examples according to the readme on Windows, it shows the rotating Hello World! text and also the AltspaceVR box underneath.
When i do the same on WSL2 in Ubuntu, it just shows the rotating text, but no box. Also in the other examples it only shows the text.

The only thing that looks different in the console is during the npm run build where it shows:

/home/mhe/code/mixed-reality-extension-sdk-samples/samples/hello-world/src/app.ts
    1:4    warning  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
    2:61   warning  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
    3:35   warning  Expected linebreaks to be 'CRLF' but found 'LF'  linebreak-style
    ...
@mheiniger
Copy link
Author

Ok, I found the problem, its WSL2 specific:
http://127.0.0.1:3901/altspace-cubes.glb does not work on WSL2, http://localhost:3901/altspace-cubes.glb does work.
It looks as if new WebHost() uses 127.0.0.1 by default.

By adding baseUrl: 'http://localhost:3901', here:

// baseUrl: 'http://<ngrok-id>.ngrok.io',
it works as intended.

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

1 participant