You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building a vite project with @datadog/[email protected], @datadog/[email protected], and @xmldom/[email protected], loading the transpiled javascript bundle in the browser yields the following fatal error:
index-CSY3qgmv.js:1652 Uncaught SyntaxError: Identifier <obfuscated> has already been declared
Describe the bug
After building a vite project with
@datadog/[email protected]
,@datadog/[email protected]
, and@xmldom/[email protected]
, loading the transpiled javascript bundle in the browser yields the following fatal error:Minimal reproduction project here: WilHall/datadog_rum_vite_issue_repro
Switching from
@datadog/[email protected]
to the slim version@datadog/[email protected]
appears to resolve the issue.Relevant Packages
@datadog/browser-logs: ^5.20.0
@datadog/browser-rum: ^5.20.0
@xmldom/xmldom: ^0.9.5
To Reproduce
Steps to reproduce the behavior:
Minimal reproduction project here: WilHall/datadog_rum_vite_issue_repro
vite build
(should be successful)vite preview
(should be successful)Uncaught SyntaxError: Identifier <obfuscated> has already been declared
getTextContent
Expected behavior
I would expect that the installation of
@datadog/[email protected]
would not cause this issue when used alongside@xmldom/[email protected]
, similar to the behavior of@datadog/[email protected]
.Since it only happens with
@datadog/[email protected]
I'm assuming this is somehow related to the inclusion of the session replay feature.The text was updated successfully, but these errors were encountered: