Skip to content
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

ReferenceError Can't find variable: PerformanceEntry error on MacOS Safari and Mobile Safari #890

Closed
davidbrusius opened this issue Jun 11, 2021 · 3 comments · Fixed by #891

Comments

@davidbrusius
Copy link

Hi,

We are experiencing a few exceptions when running the most recent version of the Datadog RUM SDK and it looks like a compatibility issue with older Safari versions when trying to use the PerformanceEntry API.

Versions affected in our end:

MacOS Safari - 10.1.2
Mobile Safari - 10.0.0

Here is the stacktrace:

ReferenceError Can't find variable: PerformanceEntry 
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:48530 
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:48630 
    [native code] forEach
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:22279 notify
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:38890 
    [native code] forEach
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:35971 
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:1188 
    https://www.datadoghq-browser-agent.com/datadog-rum.js:1:36102 n
    node_modules/core-js/modules/es.promise.js:114:29 
    node_modules/core-js/internals/microtask.js:27:8 flush

Should that versions be supported by the SDK? If so, could you help providing a fix?

Thanks

@bcaudan
Copy link
Contributor

bcaudan commented Jun 14, 2021

Hi @davidbrusius,

Thanks for the report, we'll look into it shortly.

@BenoitZugmeyer
Copy link
Member

Hello @davidbrusius, a fix has been released as part of v2.14.0. Let us know if you still encounter this issue!

@davidbrusius
Copy link
Author

Thanks @bcaudan and @BenoitZugmeyer! The error is no longer happening on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants