Foundation-sites: Uncaught TypeError: e.indexOf is not a function -- jquery 3.3.x

Created on 5 Feb 2018  路  9Comments  路  Source: foundation/foundation-sites

In the ecommerce template there's an error when using jquery 3x:

screenshot_2018-02-04_17-39-34

javascript 馃悰bug

Most helpful comment

No, this is not directly related.

jquery-3.2.1.js:9823 Uncaught TypeError: url.indexOf is not a function
    at jQuery.fn.init.jQuery.fn.load (jquery-3.2.1.js:9823)
    at foundation.js:1470
    at foundation.js:1631
  /**
  * Fires once after all other scripts have loaded
  * @function
  * @private
  */
  $(window).load(function(){ <--- caused by this

All 9 comments

Related to #10886.

No, this is not directly related.

jquery-3.2.1.js:9823 Uncaught TypeError: url.indexOf is not a function
    at jQuery.fn.init.jQuery.fn.load (jquery-3.2.1.js:9823)
    at foundation.js:1470
    at foundation.js:1631
  /**
  * Fires once after all other scripts have loaded
  * @function
  * @private
  */
  $(window).load(function(){ <--- caused by this

please help me with this issue

Hi @rainzetroc, wich version of Foundation Sites do you use and do you use it with npm / yarn and which file from it (dist / src, minified or unminified)?

FYI. If you are using Foundation v5.5.3, then you need jQuery v2.1.4, and not a bit newer!

@halfnibble why?

Hi @rainzetroc, wich version of Foundation Sites do you use and do you use it with npm / yarn and which file from it (dist / src, minified or unminified)?

I am using jquery 3.3.1 and attached mcustomscroolbar.js file code and getting this issue. Please share any suggestion, you have. Thanks.

I am using jquery 3.3.1 and attached mcustomscroolbar.js file code and getting this issue. Please share any suggestion, you have. Thanks.

Hi, this is probably not caused by Foundation Sites in your case. Also please do not post so long replies.

Was this page helpful?
0 / 5 - 0 ratings