sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Bash on Ubuntu on Windows, Webpack interface issue

Open JasonDunbar opened this issue 10 years ago • 5 comments

When running nodejs, npm and all the other goodies in Bash on Ubuntu on Windows, you'll likely receive the following Error when you run 'gulp serve':

Error - [webpack] 'dist': EINVAL: invalid argument, uv_interface_addresses @ ./lib/webparts/helloWorld/HelloWorld.module.css 1:14-94

This appears to be due to a known issue in Bash on Ubuntu on Windows - Bash on Windows os.networkInterfaces: EINVAL

Despite the issue, you're able to open up a browser and go to the address to see the Workbench.

JasonDunbar avatar Aug 22 '16 16:08 JasonDunbar

Thats correct. The support to evaluate the network interface is coming and then everything it will work way better with NodeJS and Bash on Windows.

I tested Yeoman on NodeJS in a pretty early stage and opened an issue on the Bash On Windows project about Yeoman.

StfBauer avatar Aug 22 '16 16:08 StfBauer

I'm not even going to pretend that I have anything worthwhile to contribute here. Is there anything we can do in the framework or tooling to improve this scenario, or should I close this issue?

(On the plus side, the fact that we have people conversing about Bash, Ubuntu, Windows and SharePoint on a single page is a minor miracle I think)

patmill avatar Aug 22 '16 18:08 patmill

I had initially looked to how I might add this to 'Known Issues' because although not directly related to the framework (at least not the cause), it'll no doubt be something that people run into and may not know the underlying cause.

Not an 'Issue' per se, but worth putting somewhere.

JasonDunbar avatar Aug 22 '16 19:08 JasonDunbar

In additon you can note that the detection of network interfaces in currently not full supported by Bash on Windows. Once it will be you have to open the browser manually because Bash On Windows is currently unable to launch a Windows process. I think it might be on the roadmap in the meantime.

StfBauer avatar Aug 22 '16 19:08 StfBauer

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 30 '20 12:01 msft-github-bot