sugar-wifi-conf icon indicating copy to clipboard operation
sugar-wifi-conf copied to clipboard

npm run dev fails.

Open Syirrus opened this issue 4 years ago • 5 comments

Whenever I try to run in the "web-bluetooth-client" directory: npm run dev

I get the following error:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Any ideas on how to fix this?

Syirrus avatar May 15 '20 11:05 Syirrus

@Syirrus Any detail information of the environment, os, nodejs version, etc.

fengyc avatar May 15 '20 15:05 fengyc

Thanks for responding. I'm running the latest node from nodejs on MacOSX (latest). I finally was able to get things working and I think the changes I made to the package.json in the webpack modules clinched it.

I updated (downgraded version of webpack) the following in your package.json:

OLD: "webpack-bundle-analyzer": "^3.3.2", "webpack-dev-server": "^3.1.11",

NEW (seems to work): "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.1",

Syirrus avatar May 16 '20 10:05 Syirrus

Thanks for responding. I'm running the latest node from nodejs on MacOSX (latest). I finally was able to get things working and I think the changes I made to the package.json in the webpack modules clinched it.

I updated (downgraded version of webpack) the following in your package.json:

OLD: "webpack-bundle-analyzer": "^3.3.2", "webpack-dev-server": "^3.1.11",

NEW (seems to work): "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.1",

Looks like a webpack compatibility issue. I have downgraded the version in the latest commit.

JdaieLin avatar May 17 '20 04:05 JdaieLin

and receive a security alert suggesting upgrading to webpack-bundle-analyzer 3.3.2... So this issue is caused by Github autofix robot. I will look into this later.

JdaieLin avatar May 17 '20 04:05 JdaieLin

and receive a security alert suggesting upgrading to webpack-bundle-analyzer 3.3.2... So this issue is caused by Github autofix robot. I will look into this later.

Thank you for looking into this. I see that you downgraded webpack-bundle-analyzer.

Syirrus avatar May 18 '20 15:05 Syirrus