-
Notifications
You must be signed in to change notification settings - Fork 572
Description
I stumbled over an issue that when plugging in a phone, APK installation would fail and the log would have a message "progressed is not a function". When I removed the .progressed call from lib/units/device/resources/service.js it started working.
So I submitted this pull request: #827
I'm opening this ticket to get to the bottom of the issue.
The progressed function comes from bluebird.js. According to the changelog shipped with the container, version 2.11.0 (released 8.5 years) ago is being used. This version does have a progressed function.
Looking at the bluebird changelog I see the following:
- progress is deprecated in bluebird and has been removed since release 3.0 (sometime in 2015)
- they are suggesting to use native node promises instead of bluebird.js wherever possible
I am not very fluent in javascript but for me the only reason for the error I am seeing is that something pulls in a newer version of bluescript.js and the one shipped in the container is not used.
I have no idea why it does work for others and only breaks for me though.
Any ideas are appreciated.