Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bower error in VS2015 "bower requirejs extra-resolution Unnecessary resolution: requirejs#~2.2.0"

I'm attempting to play around with durandal but am getting this error:

enter image description here

error:

bower requirejs extra-resolution Unnecessary resolution: requirejs#~2.2.0

bower.json

{
  "name": "asp.net",
  "private": true,
  "dependencies": {
    "underscore": "~1.8.3",
    "bootstrap": "~3.3.6",
    "bootswatch": "3.3.6",
    "jquery": "2.2.3",
    "jquery-validation": "1.15.0",
    "jquery-validation-unobtrusive": "~3.2.6",
    "angular": "1.5.7",
    "angular-route": "~1.5.7",
    "durandal": "~2.1.0",
    "requirejs": "~2.2.0"
  }
}

Not having luck finding out what it means or what I need to do to fix it. RequireJS has made it into my lib folder, so I'm wondering if it's just not truly an error?

like image 241
Kritner Avatar asked Nov 09 '22 12:11

Kritner


1 Answers

Durandal already depends on requirejs, see here

    {
    "name": "Durandal",
    "version": "2.2.0",
    "dependencies": {
      "jquery": "^1.9.1",
      "knockout": "^3.4.0",
      "requirejs": "^2.1.11",
      "requirejs-text": "^2.0.12"
    }
}

So either remove "requirejs": "~2.2.0" from your bower.json or you can add resolutions to your bower.json file and specify the component name & version, see here.

like image 100
Ross Avatar answered Jan 04 '23 03:01

Ross