Menu icon Foundation
Uncaught TypeError: undefined is not a function

Hey,
I'm new with Foundation. I try to make theme for WordPress. In head I have jQuery (from WP function) and foundation.js and app.js in footer. And in app.js I have this error: "Uncaught TypeError: undefined is not a function". How to fix it?

wordpressjqueryTypeError

Hey,
I'm new with Foundation. I try to make theme for WordPress. In head I have jQuery (from WP function) and foundation.js and app.js in footer. And in app.js I have this error: "Uncaught TypeError: undefined is not a function". How to fix it?

Rafi Benkual almost 5 years ago

If this is a Sass project created with our CLI, the app.js file should contain

   <script>
    $(document).foundation();
  </script>

newbie almost 5 years ago

It was issue with jQuery.

jQuery(document).ready(function($) {
$(document).foundation();
});

James Van Waza over 4 years ago

@newbie Were you able to resolve the error, if not I do know a temporary fix.