You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
While running an app based on comedy framework we're getting an error:
Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.
at P (/home/node/work/node_modules/comedy/lib/forked-actor.js:433:25)
From previous event:
at ForkedActorChild._send0 (/home/node/work/node_modules/comedy/lib/forked-actor.js:421:12)
at ForkedActorChild._pingParent (/home/node/work/node_modules/comedy/lib/forked-actor-child.js:105:17)
at Timeout.setInterval [as _onTimeout] (/home/node/work/node_modules/comedy/lib/forked-actor-child.js:44:16)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
Honestly, I failed to reproduce this warning with https://github.com/untu/comedy-examples. However, I removed all Promise.defer() and Promise.pending() from production code. Promise.defer() is only left in tests for now.
Anyway, if you could send me a small reproducing example or just check if the problem is fixed on your side, it would be nice!
Problem:
While running an app based on comedy framework we're getting an error:
Source:
/lib/forked-actor.js
, method_send0
(https://github.com/untu/comedy/blob/master/lib/forked-actor.js#L433)I think that the main issue here is how do you use Bluebird library. According to https://github.com/petkaantonov/bluebird/wiki/Promise-anti-patterns#the-deferred-anti-pattern you should not use
defer
andpending
methods onP
object.Expected behavior:
No warning in a console.
The text was updated successfully, but these errors were encountered: