-
When I run 'npm start' on WSL 2 (Ubuntu 18.04, node v12.18.4 and v14.11.0) I get:
Steps to Reproduce
Note: I have tried this in the home ~ directory so it should be within the linux file system. I've tried this for both @snowpack/app-template-react-typescript and @snowpack/app-template-react and I get the same error. I'm not entirely sure what the consequences for the error are, I can still load the dev server and live reloading seems to work. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I'm sorry, I can't reproduce on my machine and can't debug without more information (it seems like a promise is failing, but hard to say which one. If you can find out which is failing and why, we could add a better error message here). This issue might also be relevant: facebook/create-react-app#7251 |
Beta Was this translation helpful? Give feedback.
-
While running
Hopefully that helps narrow it down? |
Beta Was this translation helpful? Give feedback.
-
That does, actually. It's interesting that |
Beta Was this translation helpful? Give feedback.
-
I'm using v12.18.4 I also just tried this on a different machine with a fresh windows and wsl2 build and it worked fine there without errors. The new machine also gets my browser to open up localhost, whereas the old machine doesn't. I'm not super familiar with how snowpack works, but I would assume esbuild was working since it still managed to build fine and I could open localhost and see live reloading work. I'm thinking it might be erroring on opening up localhost in the browser (similar to the issue in the link you provided)? It might be something to do with my old machine using the Window Insider Beta channel, and wsl2 being installed through that from before wsl2 was released to non-insider builds of windows. |
Beta Was this translation helpful? Give feedback.
-
It seems to be the problem caused by Basically you need |
Beta Was this translation helpful? Give feedback.
It seems to be the problem caused by
open@7.3.0
.sindresorhus/open#198
Basically you need
wslu
installed andpowershell.exe
in PATH to properly open browser from WSL 2.