Installed Magento 2.3.1 with sample data there are no js errors on the console. After changing the theme to Ves Need from Venustheme.


On hard refresh, the below issue occurs.

Uncaught TypeError: Cannot read property 'version' of undefined

Can someone please help me to sort out this issue.

  • can you post complete error log – fmsthird Apr 8 '19 at 9:56
  • 1
    Upgraded the jquery-ui from 1.10 to 1.12, now no issues. Thank you so much. – Ejilarasan J Apr 8 '19 at 10:18

Updated jquery-ui from 1.10 to 1.12 now the version issue has been resolved.

| improve this answer | |
  • I'm getting this error as well, could you share the process you used to upgrade jQuery? – Daniel Black Jun 5 '19 at 15:47
  • 1
    On Magento 2.2, under lib/web/jquery/jquery-ui.js replace the downloaded jquery-ui codes. Finally, run the below command from the Magento root directory code sudo chmod 777 -R var/* pub/* generated/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush sudo chmod 777 -R var/* pub/* generated/* code – Ejilarasan J Jun 6 '19 at 16:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.