question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken `yarn scripts docs.dev` script

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
landituscommented, Jun 28, 2018

Sorry, it was my setup! Closing it!

0reactions
landituscommented, Jun 27, 2018

Done and same happens

Read more comments on GitHub >

github_iconTop 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 >
Docs • Svelte
Complete documentation for Svelte.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found