I use Bluebird Promise library in my Alloy app. App builds for Android without any issues but for iOS throws the error below and crashes. I
*Reproduce:*
* Include bluebird.js in app/lib
* Build/Run for iOS (iPhone 6s)
* Red error dialog is displayed and reads: _Attempted to assign to readonly property at bluebird.js_
Before I opened this issue here, I made sure it's not Bluebird itself and opened an issue at GitHub here:
https://github.com/petkaantonov/bluebird/issues/1073
The author clearly states that, that property is not readonly and this is not specific to Bluebird.
-My guess is minification breaks the code for iOS.-
Hello, I tried to reproduce the issue in my environment. I wasn't able to reproduce the issue. I put the bluebird.js in app/lib folder and required the file in "index.js" as "require('bluebird');". I build the app in iOS. the app runs as expected. No crash occurred. Could you please attach relevant code which is essential for regenerating the issue. Regards, Sharif.
Turns out this issue is invalid. Minification is not the problem, my code was. But the misdirection is the error dialog shown.
Thanks for letting us know. Closing the ticket.