cancel
Showing results for 
Search instead for 
Did you mean: 

how can i fix jquery issue occurred after run static-deploy command ?

how can i fix jquery issue occurred after run static-deploy command ?

Magento Version  : 2.2.6

 

I used free theme to develop website for my client and today i had run magento upgrade and static deploy command.

 

then after in the site throw error like as per mention into below screenshot
Screenshot_2.png

I had tried all solutions available on magento forum, git and stackoverflow but not got proper solution to fix this issue.

Please suggest me how can i fix it ?

 

Thanks in advance.

 

2 REPLIES 2

Re: how can i fix jquery issue occurred after run static-deploy command ?

@yagnik_solanki 

You can check in Firebug name of the files from which error is coming. 
Then go to that file and include the js whose variables are coming undefined.
For example:

require([
    'jquery',
    'mage/mage',
    'mage/calendar'
], function($){
  //code here
});

The error you mentioned is coming because js used for variables timepicker and dialog is not included in that page.

Problem solved? Click Kudos & Accept as Solution!

Re: how can i fix jquery issue occurred after run static-deploy command ?

Thanks for reply,

 

I tried your solution but still same error occurred after run static deploy.