Uncaught TypeError: Cannot read property ‘msie’ of undefined when upgrading to WordPress 5.5

  • Updated on
  • read
  • Add to Flipboard Magazine.

web design code snippets

Recently when upgrading an older site to WordPress 5.5 I noticed a javascript error in the console that read Uncaught TypeError: Cannot read property ‘msie’ of undefined.

If you have a plugin or script that relied on an older version of jQuery it will no longer work because WordPress updated their jQuery version. In order to fix add this to the top of your scripts file

 

Bootstrap 4 books - learn responsive web design for beginners

Bootstrap 4 Books & Templates

Learn More

Advertise Here

Written by: Jacob Lett - Jacob started BootstrapCreative to help others learn web design and development. He has built websites for 10+ years for companies and as a freelancer. He enjoys learning and encouraging others to improve their skills.
Category: Code Snippets
Tags:

Want to Get Email Updates?

Receive a monthly digest of new tutorials and resources.

Advertise Here