Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create-react-context dependency to fix react-bootstrap-typeahead failure #5201

Merged
merged 1 commit into from
Jan 28, 2019
Merged

Add create-react-context dependency to fix react-bootstrap-typeahead failure #5201

merged 1 commit into from
Jan 28, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jan 28, 2019

react-bootstrap-typeahead 3.3.0 came out, and it requires create-react-context without depending on it, causing...

ERROR in ./node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js
Module not found: Error: Can't resolve 'create-react-context' in '/home/himdel/manageiq-ui-classic/node_modules/react-bootstrap-typeahead/lib'
resolve 'create-react-context' in '/home/himdel/manageiq-ui-classic/node_modules/react-bootstrap-typeahead/lib'
  Parsed request is a module
  using description file: /home/himdel/manageiq-ui-classic/node_modules/react-bootstrap-typeahead/package.json (relative path: ./lib)
    Field 'browser' doesn't contain a valid alias configuration
@ ./node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js 12:49-80
@ ./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js
@ ./node_modules/react-bootstrap-typeahead/lib/index.js
@ ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js
@ ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js
@ ./node_modules/patternfly-react/dist/esm/index.js
@ ./app/javascript/provider-dialogs/modal.js
@ ./app/javascript/packs/provider-dialogs-common.js
error Command failed with exit code 2.

during webpack.

But since react-bootstrap-typeahead is not a direct dependency (via patternfly-react), it's easier to fix the missing package than to override the version.

Reported as ericgio/react-bootstrap-typeahead#411

…failure

react-bootstrap-typeahead 3.3.0 came out, and it requires create-react-context without depending on it, causing...

    ERROR in ./node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js
    Module not found: Error: Can't resolve 'create-react-context' in '/home/himdel/manageiq-ui-classic/node_modules/react-bootstrap-typeahead/lib'
    resolve 'create-react-context' in '/home/himdel/manageiq-ui-classic/node_modules/react-bootstrap-typeahead/lib'
      Parsed request is a module
      using description file: /home/himdel/manageiq-ui-classic/node_modules/react-bootstrap-typeahead/package.json (relative path: ./lib)
        Field 'browser' doesn't contain a valid alias configuration
    @ ./node_modules/react-bootstrap-typeahead/lib/TypeaheadContext.js 12:49-80
    @ ./node_modules/react-bootstrap-typeahead/lib/containers/menuItemContainer.js
    @ ./node_modules/react-bootstrap-typeahead/lib/index.js
    @ ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/TypeAheadSelect.js
    @ ./node_modules/patternfly-react/dist/esm/components/TypeAheadSelect/index.js
    @ ./node_modules/patternfly-react/dist/esm/index.js
    @ ./app/javascript/provider-dialogs/modal.js
    @ ./app/javascript/packs/provider-dialogs-common.js
    error Command failed with exit code 2.

during webpack.

But since react-bootstrap-typeahead is not a direct dependency (via patternfly-react), it's easier to fix the missing package than to override the version.
@miq-bot
Copy link
Member

miq-bot commented Jan 28, 2019

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/4e0c64116f081a3931a433fff8e583fd50e12090 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@himdel
Copy link
Contributor Author

himdel commented Jan 28, 2019

(travis failure unrelated and known: #4921 (comment))

@mzazrivec mzazrivec self-assigned this Jan 28, 2019
@mzazrivec mzazrivec added this to the Sprint 104 Ending Feb 04, 2019 milestone Jan 28, 2019
@mzazrivec mzazrivec merged commit 6bcbfeb into ManageIQ:master Jan 28, 2019
@himdel himdel deleted the travis-typeahead branch January 28, 2019 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants