Getting "Failed error: assertion failed: Ember Views requires jQuery between 1.7 and 2.1" with an application created using ember-cli

I start with ember. I followed the Getting Started tutorial at emberjs.com and was able to create a new ember application by running the following commands:

npm install -g ember-cli ember new sample-app 

Everything went well and I see application files created by ember-cli. Shortly after, I did:

 ember server 

At the command line:

 version: 1.13.13 Livereload server on http://localhost:49153 Serving on http://localhost:4200/ Build successful - 4426ms. Slowest Trees | Total ----------------------------------------------+--------------------- ConcatWithMaps: Concat: Vendor | 3498ms Slowest Trees (cumulative) | Total (avg) ----------------------------------------------+--------------------- ConcatWithMaps: Concat: Vendor (1) | 3498ms 

The problem occurs when I go to http: // localhost: 4200 . Nothing loads, and the Chrome console shows the following:

 Uncaught Error: Assertion Failed: Ember Views require jQuery between 1.7 and 2.1 Uncaught Error: Could not find module `ember` imported from `sample-app/app` 

I tried to fix this by reinstalling ember-cli, bower and npm, but nothing works.

Additional information is required here in case of:

 $ ember -v version: 1.13.13 node: 5.4.0 npm: 2.14.10 os: darwin x64 $ npm -v 3.5.3 $ bower -v 1.7.2 

Help is much appreciated. Thanks in advance!

+54
javascript ember-cli
Jan 10 '16 at 5:08
source share
1 answer

This is a bug due to a new version of jQuery that ember is not yet able to handle. At the moment, you can change the following line in the bower.json file. Then run bower install and it should work.

 "jquery": "^1.11.3", 

to

 "jquery": "1.11.3", 

The new version of ember.js is imminent , which should fix this .

+100
Jan 10 '16 at 6:21
source share



All Articles