Beta 17 doesnt working on Safari
Hi!
I have a problem. I'm on beta 17 and my code works properly in chrome and firefox but in Safari my components don't appear. I get the data from firebase and put it in a component. Actually it is a chat, I get the messages from firebase. Getting the data is fast, but the messages dont appear until I manually put the focus in the input field. I have tried manual change detection but didn't work neither.
Any ideas what can be the problem and how can I solve this?
Best Regards
Any ideas what can be the problem and how can I solve this?
Without a reproduction it is impossible. Consider also that beta.17 is no more, latest release is RC.1 so you should reproduce your issue using that version. Don't forget to add the polyfills.
i'm willing to bet it was the same change detection issues a lot of people were commenting about (myself included) on betas 16 & 17. In RC 1, it seems to be fixed. I suggest upgrading!
We have a few strange change detection issues in Beta 17 on Safari only: EXCEPTION: ReferenceError: Can't find variable: Intl in [null]
Which is thrown from: angular2/src/core/change_detection/dynamic_change_detector
@jaichopra see this https://github.com/angular/angular/issues/3333
It seems like after we updated the problem still exists, so here are some details:
- es6 shim loaded
- angular2 polyfill loaded
We receive the data immediately after the site loads and the user auth was successfully via JWT. Chrome renders the components instantly, meanwhile safari and firefox stucks and the render phase wont happen, (its the main component)
so after a few sec (30-40) its show up and work fine, if we remove the polyfill then its the same, if i change the polyfill to an older one its works fine but gets a Maximum call stack size exceeded error, which is somewhere in zone and the stack trace simply shows one line about 9000 times.
Note, we had a similar problem with a child component, that issue could be solved with: this._zone.run(()=>{});
So someone any idea?
Subscriber.js:171 Uncaught EXCEPTION: Error in ./ConversationListComponent class ConversationListComponent - inline template:3:6
ORIGINAL EXCEPTION: RangeError: Maximum call stack size exceeded
ORIGINAL STACKTRACE:
RangeError: Maximum call stack size exceeded
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
at Object.defineProperty.get (/main.sfx.js:15884:32)
ERROR CONTEXT:
[object Object]
var originalInstanceKey = exports.zoneSymbol('originalInstance');
// wrap some native API on `window`
function patchClass(className) {
var OriginalClass = _global[className];
if (!OriginalClass)
return;
_global[className] = function () {
var a = bindArguments(arguments, className);
switch (a.length) {
case 0:
this[originalInstanceKey] = new OriginalClass();
break;
case 1:
this[originalInstanceKey] = new OriginalClass(a[0]);
break;
case 2:
this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
break;
case 3:
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
break;
case 4:
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
break;
default: throw new Error('Arg list too long.');
}
};
var instance = new OriginalClass(function () { });
var prop;
for (prop in instance) {
(function (prop) {
if (typeof instance[prop] === 'function') {
_global[className].prototype[prop] = function () {
return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
};
}
else {
Object.defineProperty(_global[className].prototype, prop, {
set: function (fn) {
if (typeof fn === 'function') {
this[originalInstanceKey][prop] = Zone.current.wrap(fn, className + '.' + prop);
}
else {
this[originalInstanceKey][prop] = fn;
}
},
get: function () {
return this[originalInstanceKey][prop]; // THE PROBLEM IS HERE ?!
}
});
}
}(prop));
}
for (prop in OriginalClass) {
if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
_global[className][prop] = OriginalClass[prop];
}
}
}
exports.patchClass = patchClass;
;
Thank you for submitting the issue. All issues require a plunker which demonstrates the problem and how to reproduce it. Please re-open the issue or create a new issue once you have a reproducible use case.
We are sorry that we are so aggressive on closing the issues. We are overwhelmed with the number of issues we get, and so we only have time to look at the ones which are easy for us to reproduce.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.