Bootstrap requires JQuery (using Express with Parse) -
i working on writing little website. hosting site parse , using express , bootstrap. top of app.js file looks this:
var express = require('express'); var _ = require('underscore'); var jquery = require('cloud/libs/jquery-2.1.1.min.js'); var bootstrap = require('cloud/libs/bootstrap.min.js');
when go deploy (parse deploy
) app, comes next error:
uploading source files finished uploading files update failed not load triggers. error error: bootstrap's javascript requires jquery @ libs/bootstrap.min.js:6:37 @ app.js:6:17 @ main.js:1:1
i cannot figure out how include bootstrap , jquery in app without getting error. i've followed setup instructions parse has here. serving files myself.
does know how include bootstrap , jquery in type of web app?
i new this, if have clarifying questions please inquire kindly.
since serving myself moved bootstrap , jquery files public folder , included these tags in _header.ejs
.
<script src="/bootstrap/js/jquery-2.1.1.min.js"></script> <script src="/bootstrap/js/bootstrap.min.js"></script>
my error not putting bootstrap files in public folder.
i looking using bootstrap cdn or hosted bootstrap. unless of course of study improve serve them statically?
jquery twitter-bootstrap express parse.com
No comments:
Post a Comment