I am seeing a jQuery error in the console when the page loads. i have tried this link, but the issue has not been resolved

enter image description here

i do know where it comes from.when i refresh the page the issue is resolved.

anyone have idea about this?

  • This is a classic require js issue. To debug it though, could you post the code you are using that is kicking an error? if you have already added in a require to the code, it might just be a syntax error. – circlesix Mar 29 '18 at 21:50
  • @circlesix i have added my script.could you please tell me where i have made an error. – chris Apr 2 '18 at 4:22

This is the code which i am using in phtml file

        function($, modal) {
            var options = {
                type: 'popup',
                responsive: true,
                innerScroll: true,
                modalClass: 'store_cookie_popup'
                var popup = modal(options, $('#popup_content'));
            $('.store_cookie_popup .action-close').click(function(event) {
            $('.store_cookie_popup .nearmarker_store').on('click',function(){
                var id = $(this).attr('key');
                $.cookie("warehouse_id", id);
                window.location.href = "";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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