Meteor app running but unable to load


#1

Hi all, my app doesn’t load in browser.

Error on client console

Uncaught Error: Bootstrap’s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
Uncaught TypeError: url.indexOf is not a function

Some Details:

  • Meteor version: 1.3.4.1
  • Tried using a clean MongoDB
  • Running in Ubuntu 14.04.4 LTS (GNU/Linux 3.19.0-25-generic x86_64)
  • Runs perfectly in Windows environment
  • Server console doesn’t output any error

packages.json

{
“name”: “demo”,
“private”: true,
“scripts”: {
“start”: “meteor run”,
“test:watch”: “meteor test --driver-package practicalmeteor:mocha”
},
“dependencies”: {
“angular”: “^1.5.8”,
“angular-meteor”: “^1.3.11”,
“angular-mocks”: “^1.5.6”,
“angular-sanitize”: “^1.5.8”,
“angular-ui-router”: “^0.2.18”,
“bootstrap”: “^4.0.0-alpha.3”,
“meteor-node-stubs”: “~0.2.0”
},
“devDependencies”: {
“angular-mocks”: “^1.5.6”,
“chai”: “^3.5.0”,
“sinon”: “^1.17.4”,
“sinon-chai”: “^2.8.0”
}
}

Server Console:

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/


#2

It’s difficult to troubleshoot this without seeing your application code. As a start I’d recommend focusing on the “url.indexOf is not a function” error, and tracking down where the url variable is defined (and why it’s empty).


#3

How do I start tracking down the url variable?
The variable is not declared by me, and the error occurs in line 9649 in jquery.js.
P.S sorry I’m kind of new in this

Full Error:

Uncaught TypeError: url.indexOf is not a function jquery.js:9649


#4

Same error here. Any suggestions?


#5

are you seeing
Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3?
Because that sounds like you just need to specify && install the proper version of jquery (the original poster didn’t seem to have it listed explicitly in his npm dependencies)


#6

Hi @mds4m,

thank you for responding.
No, it actually only shows “Uncaught TypeError: url.indexOf is not a function” and the source “jquery.js:9793”.
jQuery Version is “jquery@1.11.9”.
Also I don’t know how to debug this correctly.

Regards


#7

Looking around, that error seems to be largely correlated with version 3.X of jquery not supporting an old .load call. Are you installing jquery via NPM? Or are you using the Meteor packaged version of it?