Title: Uncaught ReferenceError: require is not defined
Last modified: July 3, 2023

---

# Uncaught ReferenceError: require is not defined

 *  Resolved [Creato](https://wordpress.org/support/users/creatomatic/)
 * (@creatomatic)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-require-is-not-defined-2/)
 * Hi, I do not think this plugin using modules correctly. 
   Console:
 * Uncaught ReferenceError: require is not defined
   From:/chaty/js/cht-front-script.
   min.js
 * The line in question:
   “function” == typeof define && define.amd ? define([“jquery”],
   t) : “undefined” != typeof module && module.exports ? module.exports = t(require(“
   jquery”)) : t(jQuery)Please advise.Best wishes

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-require-is-not-defined-2/#post-16867688)
 * Hey [@creatomatic](https://wordpress.org/support/users/creatomatic/) , thanks
   for your comment and we’re sorry to hear! 
   As we haven’t had this issue before
   and are unable to reproduce it directly on our test sites, can you please reach
   out via email at [hi@support.premio.io](https://wordpress.org/support/topic/uncaught-referenceerror-require-is-not-defined-2/hi@support.premio.io?output_format=md).
   We’ll do our best to help you out!
 *  Plugin Support [Karina](https://wordpress.org/support/users/karinapremio/)
 * (@karinapremio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-require-is-not-defined-2/#post-16867692)
 * If you could also send a link to your site to further debug this, that would 
   be great!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Uncaught ReferenceError: require is not defined’ is closed to new replies.

 * ![](https://ps.w.org/chaty/assets/icon-256x256.gif?rev=2938062)
 * [Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line Messenger, WeChat, Email, SMS, Call Button – Chaty](https://wordpress.org/plugins/chaty/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chaty/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chaty/)
 * [Active Topics](https://wordpress.org/support/plugin/chaty/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chaty/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chaty/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Karina](https://wordpress.org/support/users/karinapremio/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-require-is-not-defined-2/#post-16867692)
 * Status: resolved