Broken `yarn scripts docs.dev` script
See original GitHub issueI believe this only happens on my machine, but when I run yarns scripts docs.dev
I get the following errors:
[docs.dev_site] ℹ 「hot」: webpack: Compiling...
[docs.dev_site] ✖ 「hot」: WebSocket Server Error { Error: getaddrinfo ENOTFOUND localhost
[docs.dev_site] at errnoException (dns.js:50:10)
[docs.dev_site] at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
[docs.dev_site] code: 'ENOTFOUND',
[docs.dev_site] errno: 'ENOTFOUND',
[docs.dev_site] syscall: 'getaddrinfo',
[docs.dev_site] hostname: 'localhost' }
[docs.dev_site] ✖ 「serve」: { Error: getaddrinfo ENOTFOUND localhost
[docs.dev_site] at errnoException (dns.js:50:10)
[docs.dev_site] at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
[docs.dev_site] code: 'ENOTFOUND',
[docs.dev_site] errno: 'ENOTFOUND',
[docs.dev_site] syscall: 'getaddrinfo',
[docs.dev_site] hostname: 'localhost' }
The script ends in
[docs.dev_site] ℹ 「wdm」: Compiled successfully.
but the server doesn’t work 😓
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
bug: broken support for yarn executing tests #3482 - GitHub
It look to be an issue specific to yarn, since in your reproduction case I am able to run the test:dev script with...
Read more >Lifecycle Scripts | Yarn - Package Manager
An overview of Yarn's supported lifecycle scripts.
Read more >yarn build:js-dev is broken due to wrong order of arguments
yarn build:js-dev is broken due to wrong order of arguments · Problem/Motivation · Proposed resolution · Remaining tasks · User interface changes.
Read more >How to resolve npm run dev missing script issues?
1) In the npm package. json script, define a script like this: "start:dev": "webpack-dev-server --open --config webpack/webpack. config.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, it was my setup! Closing it!
Done and same happens