-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with dash.js 5.0 (nightly version) #4619
Comments
Active discussion on this at #4617 |
Thanks for linking the discussion @davemevans and thanks for testing @testeur-990. I addressed this for now in #4620 . Please let me know if your issue is solved once the PR is merged. |
Thank you @dsilhavy ,with your change, we no longer have this error, but we're still unable to test dashjs 5 because another error occurs: Uncaught TypeError: Object.values is not a function in the following function function updateRules() { |
@testeur-990 Thanks for checking. When transpiling for a certain Chrome version, the missing methods like Since I want to encourage people to test v5 as easily as possible, I decided to completely transpile to ES5 for now and remove the Discussion is still ongoing in #4617 as well |
The corresponding PR for now is #4621 |
Hello @dsilhavy , |
Hello,
We tried testing dash.js 5.0 (nightly version) on some older browser versions (e.g., Chrome 54), but we encountered errors related to modern JavaScript syntax. Could you please let us know if there were changes between dash.js 4.x and 5.x related to Babel or similar? because this kind of error did not occur with dash.js 4.x.
Please see below an example of the errors we encountered :
Uncaught SyntaxError: Unexpected token ? CMCDParameters.js
in this function
init(data) {
super.init(data);
if (data) {
this.version = data.version;
this.sessionID = data.sessionID;
this.contentID = data.contentID;
this.mode = data.mode ?? 'query';
this.keys = data.keys ? data.keys.split(' ') : null;
this.includeInRequests = data.includeInRequests ? data.includeInRequests.split(' ') : ['segment'];
this.schemeIdUri = data.schemeIdUri;
}
}
}
The text was updated successfully, but these errors were encountered: