Most likely your html file was something like this:
<!doctype html> <html> <head> <title>Title</title> <script src="../js/jquery.js"></script> <script src="../js/foundation.min.js"></script> </head> <body> <script> $(document).foundation(); </script> </body> </html>
And you got an error, for example:
Uncaught TypeError: Layer must be a document node Uncaught TypeError: Object [object Object] has no method 'foundation'
You need to move the <script> , which includes base.js in the body part, before another script tag. As described in the documentation. This is not an error, but the matter is in ordering / executing a script and dependencies. See loading and ordering scripts and other related Q & A. And jquery.js should be included in the foundation.js library.
source share