console.log not called in server.start callback
See original GitHub issueThis issue appears with the switch from 0.9.0 to 1.0.0
I’m using graphcool beta and my server is defined in index.js which looks like this:
server.start(() => console.log("Server is running on http://localhost:4000"));
with graphql-yoga 0.9.0, I call yarn start and it prints the message as expected. In 1.0.0 it does nothing, which looks scary, like my server didn’t start, but it did.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
console.log not called in server.start callback · Issue #88
I'm using graphcool beta and my server is defined in index.js which looks like this: server.start(() => console.log("Server is running on http ...
Read more >javascript - Callback isn't called
I use the following code and it seems that the callback (Which start with Im HERE ) is not called, any idea why?...
Read more >console.log isn't in the JavaScript language | by Nikhil John
ET starts. Event Loop continuously checks for non-empty Callback Queue (returns false); V8 pops any other frames in the Call Stack and executes...
Read more >HTTPS | Node.js v19.3.0 Documentation
When using the lexical ESM import keyword, the error can only be caught if a handler for process.on('uncaughtException') is registered before any attempt...
Read more >The 10 Most Common JavaScript Issues Developers Face
If you need help figuring out why your JavaScript isn't working, consult this list of the 10 most common JavaScript issues from a...
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
I agree both syntax options should work. This should and can be fixed in
start()
, checking if the first parameter is a function.Both syntax options should be supported. This rather looks like a bug to me. @kbrandwijk what are your thoughts?