camster123
asked on
Windows7 Karma start results in Uncaught error: Bootstrap's JavaScript requires jQuery
I installed karma, jasmine , karma-jasmine and karma-chrome-launcher globally on a Windows 7 Lenovo laptop PC
I encountered the following error: Bootstrap's JavaScript requires jQuery
C:\Users\Frank\translator> node C:\Users\Frank\AppData\Roa ming\
pm\node_modules\karma\bin\ karma start karma.conf.js --browsers=Chrome
11 10 2015 02:00:26.047:INFO [karma]: Karma v0.13.10 server started at http://l
calhost:9876/11 10 2015 02:00:28.461:INFO [Chrome 45.0.2454 (Windows 7 0.0.0)]: Connected on
socket Zh15Xhkr9BMWvfgRAAAA with id 44656755
11 10 2015 02:00:26.078:INFO [launcher]: Starting browser Chrome
Chrome 45.0.2454 (Windows 7 0.0.0) ERROR
Uncaught Error: Bootstrap's JavaScript requires jQuery
at C:/Users/Frank/translator/ js/vendor/ bootstrap. min.js:6
How may I fix this error and find the source of it?
Any help is greatly appreciated.
I encountered the following error: Bootstrap's JavaScript requires jQuery
C:\Users\Frank\translator>
pm\node_modules\karma\bin\
11 10 2015 02:00:26.047:INFO [karma]: Karma v0.13.10 server started at http://l
calhost:9876/11 10 2015 02:00:28.461:INFO [Chrome 45.0.2454 (Windows 7 0.0.0)]: Connected on
socket Zh15Xhkr9BMWvfgRAAAA with id 44656755
11 10 2015 02:00:26.078:INFO [launcher]: Starting browser Chrome
Chrome 45.0.2454 (Windows 7 0.0.0) ERROR
Uncaught Error: Bootstrap's JavaScript requires jQuery
at C:/Users/Frank/translator/
How may I fix this error and find the source of it?
Any help is greatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is an excerpt from my index.html and karma.conf.js. Please tell me what other source I should show.
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatibl
<meta name="viewport" content="width=device-widt
<title>Hello Worldr</title>
<link rel="stylesheet" href="css/bootstrap.min.cs
<link rel="stylesheet" href="css/main.css" />
<script src="js/vendor/jquery.min.
<script data-main="js/app" src="js/vendor/require.min
<script src="js/app.js"></script>
</head>
// Karma configuration
// Generated on Sat Sep 19 2015 21:43:09 GMT-0400 (EDT)
module.exports = function(config) {
var absolute_root = process.cwd() + '/';
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'requirejs'],
// list of files / patterns to load in the browser
files: [
absolute_root + 'test-main.js',
absolute_root + 'js/vendor/**/*.js',
absolute_root + 'js/test/spec/**/*.js',
absolute_root + 'js/app/**/*.js'
],
plugins: [
'karma-jasmine',
'karma-requirejs',
'karma-phantomjs-launcher'
'karma-chrome-launcher'
],
// list of files to exclude
exclude: [
'js/vendor/jasmine-core/**
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true
})
}