Electron adding JQuery

0 votes
asked Sep 13, 2017 by o-shehab


I am trying to use bootstrap in my electron app main.html

I used this code

<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="style.css">
    <script src="./Scripts/jquery-1.10.2.min.js"></script>
    <script src="./Scripts/bootstrap.js"></script>
    <script src="./Scripts/bootstrap.min.js"></script>
</head>

but the console raises

Uncaught ReferenceError: $ is not defined
    at bootstrap.js:2
    at bootstrap.js:62

Uncaught Error: Bootstrap's JavaScript requires jQuery
    at bootstrap.min.js:6

I searched for solution but all answer are Call JQuery script before any other script

and in the code above I called It first and the problem still exists

please help me

I am using JQuery 1.10.2 and This Bootstrap style

1 Answer

0 votes
answered Sep 13, 2017 by y0hami

Your problem is not bootstrap but its jQuery not getting loaded. Please refer to this question to fixed jQuery Electron: jQuery is not defined

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter

...