Bower dependency / jQuery version

Bower dependency / jQuery version

rink_attendant_6rink_attendant_6 Posts: 16Questions: 4Answers: 1
edited April 2014 in General
I'm installing DataTables through Bower and noticed that a conflict has come up:

[quote]
Unable to find a suitable version for jquery, please choose one:
1) jquery#~1.8.0 which resolved to 1.8.3+1 and is required by DataTables#1.9.4
2) jquery#>= 1.9.0 which resolved to 2.1.0 and is required by bootstrap#3.1.1, bootstrap#3.1.1
3) jquery#2.1.0 which resolved to 2.1.0 and is required by Project1
4) jquery#>=1.7.1 which resolved to 2.1.0 and is required by bootstrap-datepicker#1.3.0

Prefix the choice with ! to persist it to bower.json

[?] Answer:
[/quote]

Is there a problem with using jQuery 2.1.x (or any version of jQuery beyond 1.8.x for that matter) with DataTables? It does say ~1.8.0 in the bower.json file in release branch but I've noticed that some other branches on the GitHub repo indicate >=1.7.0.

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    DataTables is compatible with jQuery 1.7+*. There is an error in the bower.json file that came with 1.9.4... The correct file is in the repo now: https://github.com/DataTables/DataTables/blob/master/bower.json . This will be released along with 1.10.0 soon.

    (*) Actually DataTables 1.9- is compatible with jQuery 1.3.2+, but I'd very much recommend using 1.7+ which is required by 1.10 and the current extensions.

    Allan
This discussion has been closed.