Skip to content

web-nodejs bower build failures due to bower resolutions for jquery #9

Description

@jr00n

This happens with OCP 3.11

bower patternfly-bootstrap-combobox#~1.1.7                extract archive.tar.gz
--
  | bower patternfly-bootstrap-combobox#~1.1.7               resolved https://github.com/patternfly/patternfly-bootstrap-combobox.git#1.1.7
  | Please note that,
  | angular-route#1.5.10 depends on angular#1.5.10 which resolved to angular#1.5.10
  | angular-patternfly#3.17.0 depends on angular#1.3.0 - 1.5.* which resolved to angular#1.5.10
  | angular-bootstrap#0.14.3 depends on angular#>=1.3.0 which resolved to angular#1.5.10
  | angular-animate#1.5.11, angular-sanitize#1.5.11 depends on angular#1.5.11 which resolved to angular#1.5.11
  | Resort to using angular#1.5.10 which resolved to angular#1.5.10
  | Code incompatibilities may occur.
  | bower jquery                                           resolution Unsuitable resolution declared for jquery: 3.3.1
  | bower                                                   ECONFLICT Unable to find suitable version for jquery
  | npm ERR! code ELIFECYCLE
  | npm ERR! errno 1
  | npm ERR! web@1.0.0 postinstall: `bower --config.registry.search=${BOWER_MIRROR} install`
  | npm ERR! Exit status 1
  | npm ERR!
  | npm ERR! Failed at the web@1.0.0 postinstall script.
  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  | npm ERR! A complete log of this run can be found in:
  | npm ERR!     /opt/app-root/src/.npm/_logs/2019-04-17T14_50_18_852Z-debug.log

it is solved by changing bower.json to jquery 3.4.0

from

"resolutions": {
        "angular": "1.5.10",
        "jquery": "3.3.1",
        "bootstrap": "~3.3.7"
    }
}

to

"resolutions": {
        "angular": "1.5.10",
        "jquery": "3.4.0",
        "bootstrap": "~3.3.7"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions