{"id":18546774,"date":"2025-07-08T19:37:15","date_gmt":"2025-07-08T19:37:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/typeerror-within-onetrust-javascript-file\/"},"modified":"2025-07-08T19:37:15","modified_gmt":"2025-07-08T19:37:15","slug":"typeerror-within-onetrust-javascript-file","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/typeerror-within-onetrust-javascript-file\/","title":{"rendered":"TypeError Within OneTrust JavaScript File"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When viewing any front-end page while the CookiePro plugin is activated, a console error can be seen, stating:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Uncaught (in promise) TypeError: m.moduleInitializer is undefined<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This error is located within an imported JavaScript file from OneTrust:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#047;&#047;cdn.cookielaw.org\/scripttemplates\/6.2.0\/otBannerSdk.js:7:330430<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Are there plans for OneTrust to update this file to remove the error?<\/p>\n","protected":false},"template":"","class_list":["post-18546774","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18546774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18546774\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18546774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}