Title: TypeError Within OneTrust JavaScript File
Last modified: July 8, 2025

---

# TypeError Within OneTrust JavaScript File

 *  [rayosdev2](https://wordpress.org/support/users/rayosdev2/)
 * (@rayosdev2)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/typeerror-within-onetrust-javascript-file/)
 * When viewing any front-end page while the CookiePro plugin is activated, a console
   error can be seen, stating:
 *     ```wp-block-code
       Uncaught (in promise) TypeError: m.moduleInitializer is undefined
       ```
   
 * This error is located within an imported JavaScript file from OneTrust:
 *     ```wp-block-code
       https://cdn.cookielaw.org/scripttemplates/6.2.0/otBannerSdk.js:7:330430
       ```
   
 * Are there plans for OneTrust to update this file to remove the error?

The topic ‘TypeError Within OneTrust JavaScript File’ is closed to new replies.

 * ![](https://ps.w.org/cookiepro/assets/icon-256x256.png?rev=2288943)
 * [CookiePro | Simplify Compliance with GDPR & EU Cookie Laws](https://wordpress.org/plugins/cookiepro/)
 * [Support Threads](https://wordpress.org/support/plugin/cookiepro/)
 * [Active Topics](https://wordpress.org/support/plugin/cookiepro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookiepro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookiepro/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rayosdev2](https://wordpress.org/support/users/rayosdev2/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/typeerror-within-onetrust-javascript-file/)
 * Status: not resolved