Added [app.serveOrigin] UnhandledPromiseRejectionWarning
See original GitHub issue_Originally posted by @pavelfeldman in https://github.com/GoogleChromeLabs/carlo/issues/45#issuecomment-436094420_ _Commit: https://github.com/GoogleChromeLabs/carlo/commit/e384301633c59061bac6aa6959e4566b4e45c598_
App.serveOrigin(origin) doesn’t seem to work properly.
(node:2452) UnhandledPromiseRejectionWarning: TypeError: app.serveOrigin is not a function
at carlo.launch.then (D:\Dokumenty\carlo-serve-origin-test\index.js:5:7)
at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:2452) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:2452) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
UnhandledPromiseRejectionWar...
js/MEAN stack and I'm following an Express tutorial. I get the following error: (node:11524) UnhandledPromiseRejectionWarning: Unhandled promise ...
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 FreeTop 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
Top GitHub Comments
The idea behind
serveOrigin
is that it is used for dev mode and overridesserveFolder
. Carlo should not be used withoutserveFolder
, because it defeats Carlo’s purpose. You can run express and point your browser to the port if all you want is serve.Perhaps it could be changed in
load()
?And it’d be implicitly set, saving from confusion as mentioned above