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

  • read

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


Written by: Jacob Lett - Jacob is a HubSpot CMS designer & developer who helps B2B businesses grow their revenue. Unlike his competitors, he focuses on small and consistent website design changes to increase results. He recently created the Industrial HubSpot Theme to help manufacturers quickly build their website on the HubSpot CMS platform. Connect on LinkedIn
Category: Code Snippets