-
Notifications
You must be signed in to change notification settings - Fork 441
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
Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') #38
Comments
What browser are you receiving this error? Would you be able to create a minimal example to reproduce this? Thanks |
@adamdbradley I'm getting a similar error. All browsers, Chrome, FF, Safari I have it set up like this <script>
partytown = {
lib: "/js/~partytown/",
debug: true,
forward: [['dataLayer', 1]],
logCalls: true,
logGetters: true,
logSetters: true,
logImageRequests: true,
logMainAccess: true,
logSendBeaconRequests: true,
logStackTraces: false,
logScriptExecution: true,
};
</script>
<script src="/js/~partytown/debug/partytown.js"></script>
<script type="text/partytown">
(function (window, document, i) {
window['dataLayer'] = window[dataLayer] || [];
window['dataLayer'].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });
var firstScript = document.getElementsByTagName('script')[0];
var gtmScript = document.createElement('script');
var dataLayer = 'dataLayer' != 'dataLayer' ? '&l=' + 'dataLayer' : '';
gtmScript.async = true;
gtmScript.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dataLayer;
firstScript.parentNode.insertBefore(gtmScript, firstScript);
})(window, document, 'GTM-REDACTED');
</script> And i'm getting this error:
|
Hey!
Why? |
It conflicts with gpt.js: <script src="//securepubads.g.doubleclick.net/tag/js/gpt.js" /> |
Any update on this? I am also receiving this error:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. I just tried to use this library for the first time, got the error:
here
docImpl.createElement("i").constructor.name
returnsb
, andwin.b
isundefined
. 🤷♀️The text was updated successfully, but these errors were encountered: