jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 394 forks source link

Updating from older v4.4 to v5.2 fails to compile #1090

Open shwatt opened 3 years ago

shwatt commented 3 years ago

When upgrading from version react-widgets from v4.4 to v5.2, I am getting the list of errors below:

ERROR in ./src/index.scss (./node_modules/css-loader??ref--8-1!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js??ref--8-3!./src/index.scss) Module build failed (from ./node_modules/sass-loader/lib/loader.js):

@import "~react-widgets/lib/scss/react-widgets"; ^ File to import not found or unreadable: ~react-widgets/lib/scss/react-widgets. client\shell\assets\styles\shell.scss (line 101, column 1) @ ./src/index.scss 2:14-181 @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/ModalManager.js Module not found: Error: Can't resolve 'dom-helpers/class' in ‘\client \node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/ModalManager.js 5:13-41 @ ./node_modules/react-overlays/lib/Modal.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-bootstrap/es/Modal.js Module not found: Error: Can't resolve 'dom-helpers/events' in ‘\client \node_modules\react-bootstrap\es' @ ./node_modules/react-bootstrap/es/Modal.js 7:0-40 186:4-10 192:4-10 @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/utils/addEventListener.js Module not found: Error: Can't resolve 'dom-helpers/events/off' in '\client \node_modules\react-overlays\lib\utils' @ ./node_modules/react-overlays/lib/utils/addEventListener.js 19:11-44 @ ./node_modules/react-overlays/lib/Modal.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Transition.js Module not found: Error: Can't resolve 'dom-helpers/events/on' in '\client \node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Transition.js 12:10-42 @ ./node_modules/react-bootstrap/es/Fade.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/utils/addEventListener.js Module not found: Error: Can't resolve 'dom-helpers/events/on' in '\client\node_modules\react-overlays\lib\utils' @ ./node_modules/react-overlays/lib/utils/addEventListener.js 15:10-42 @ ./node_modules/react-overlays/lib/Modal.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-bootstrap/es/OverlayTrigger.js Module not found: Error: Can't resolve 'dom-helpers/query/contains' in '\client\node_modules\react-bootstrap\es' @ ./node_modules/react-bootstrap/es/OverlayTrigger.js 6:0-50 216:45-53 @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-bootstrap/es/Dropdown.js Module not found: Error: Can't resolve 'dom-helpers/query/contains' in ' \client\node_modules\react-bootstrap\es' @ ./node_modules/react-bootstrap/es/Dropdown.js 8:0-50 138:30-38 @ ./node_modules/react-bootstrap/es/NavDropdown.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Modal.js Module not found: Error: Can't resolve 'dom-helpers/query/contains' in ' \client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Modal.js 11:16-53 @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/RootCloseWrapper.js Module not found: Error: Can't resolve 'dom-helpers/query/contains' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/RootCloseWrapper.js 5:16-53 @ ./node_modules/react-overlays/lib/Overlay.js @ ./node_modules/react-bootstrap/es/Overlay.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Affix.js Module not found: Error: Can't resolve 'dom-helpers/query/height' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Affix.js 11:14-49 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/utils/isOverflowing.js Module not found: Error: Can't resolve 'dom-helpers/query/isWindow' in '\client\node_modules\react-overlays\lib\utils' @ ./node_modules/react-overlays/lib/utils/isOverflowing.js 6:16-53 @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/AutoAffix.js Module not found: Error: Can't resolve 'dom-helpers/query/offset' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/AutoAffix.js 7:14-49 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Affix.js Module not found: Error: Can't resolve 'dom-helpers/query/offset' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Affix.js 15:14-49 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/utils/calculatePosition.js Module not found: Error: Can't resolve 'dom-helpers/query/offset' in '\client\node_modules\react-overlays\lib\utils' @ ./node_modules/react-overlays/lib/utils/calculatePosition.js 6:14-49 @ ./node_modules/react-overlays/lib/Position.js @ ./node_modules/react-overlays/lib/Overlay.js @ ./node_modules/react-bootstrap/es/Overlay.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Affix.js Module not found: Error: Can't resolve 'dom-helpers/query/offsetParent' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Affix.js 19:20-61 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/utils/calculatePosition.js Module not found: Error: Can't resolve 'dom-helpers/query/position' in '\client\node_modules\react-overlays\lib\utils' @ ./node_modules/react-overlays/lib/utils/calculatePosition.js 10:16-53 @ ./node_modules/react-overlays/lib/Position.js @ ./node_modules/react-overlays/lib/Overlay.js @ ./node_modules/react-bootstrap/es/Overlay.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Affix.js Module not found: Error: Can't resolve 'dom-helpers/query/scrollTop' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Affix.js 23:17-55 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/utils/calculatePosition.js Module not found: Error: Can't resolve 'dom-helpers/query/scrollTop' in '\client\node_modules\react-overlays\lib\utils' @ ./node_modules/react-overlays/lib/utils/calculatePosition.js 14:17-55 @ ./node_modules/react-overlays/lib/Position.js @ ./node_modules/react-overlays/lib/Overlay.js @ ./node_modules/react-bootstrap/es/Overlay.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-bootstrap/es/Collapse.js Module not found: Error: Can't resolve 'dom-helpers/style' in ‘\client\node_modules\react-bootstrap\es' @ ./node_modules/react-bootstrap/es/Collapse.js 7:0-36 30:26-29 30:64-67 @ ./node_modules/react-bootstrap/es/Panel.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/ModalManager.js Module not found: Error: Can't resolve 'dom-helpers/style' in ‘\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/ModalManager.js 9:13-41 @ ./node_modules/react-overlays/lib/Modal.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Transition.js Module not found: Error: Can't resolve 'dom-helpers/transition/properties' in ‘\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Transition.js 16:18-62 @ ./node_modules/react-bootstrap/es/Fade.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-bootstrap/es/Modal.js Module not found: Error: Can't resolve 'dom-helpers/util/inDOM' in '\client\node_modules\react-bootstrap\es' @ ./node_modules/react-bootstrap/es/Modal.js 9:0-47 200:9-18 @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Modal.js Module not found: Error: Can't resolve 'dom-helpers/util/inDOM' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Modal.js 15:13-46 @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/Affix.js Module not found: Error: Can't resolve 'dom-helpers/util/requestAnimationFrame' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/Affix.js 27:29-78 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/AutoAffix.js Module not found: Error: Can't resolve 'dom-helpers/util/requestAnimationFrame' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/AutoAffix.js 11:29-78 @ ./node_modules/react-overlays/lib/index.js @ ./shell/src/shell/components/dropdownMenu.tsx @ ./src/views/portfolio/scenario/rules/ScenarioRulesCommandBar.tsx @ ./src/views/portfolio/scenario/rules/scenarioSelectionConstraints.tsx @ ./src/views/routes.tsx @ ./src/views/portfolioApplicationLayout.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-bootstrap/es/Modal.js Module not found: Error: Can't resolve 'dom-helpers/util/scrollbarSize' in '\client\node_modules\react-bootstrap\es' @ ./node_modules/react-bootstrap/es/Modal.js 10:0-62 213:65-81 214:64-80 @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-overlays/lib/ModalManager.js Module not found: Error: Can't resolve 'dom-helpers/util/scrollbarSize' in '\client\node_modules\react-overlays\lib' @ ./node_modules/react-overlays/lib/ModalManager.js 13:21-62 @ ./node_modules/react-overlays/lib/Modal.js @ ./node_modules/react-bootstrap/es/Modal.js @ ./node_modules/react-bootstrap/es/index.js @ ./shell/src/shell/components/form/localizedButton.tsx @ ./src/views/error/errorBoundary.tsx @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-widgets-moment/index.js Module not found: Error: Can't resolve 'react-widgets/lib/configure' in '\client\node_modules\react-widgets-moment' @ ./node_modules/react-widgets-moment/index.js 8:40-78 @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./node_modules/react-widgets-simple-number/index.js Module not found: Error: Can't resolve 'react-widgets/lib/configure' in '\client\node_modules\react-widgets-simple-number' @ ./node_modules/react-widgets-simple-number/index.js 6:40-78 @ ./src/index.tsx @ multi core-js whatwg-fetch ./src/index.tsx

ERROR in ./src/index.tsx Module not found: Error: Can't resolve 'react-widgets/lib/scss/react-widgets.scss' in '\client\src' @ ./src/index.tsx 40:0-52 @ multi core-js whatwg-fetch ./src/index.tsx

iuliiadefault commented 2 years ago

Looks like they've refactored dom-helpers lib. Try to install dom-helpers@3.4.0 manually, solved my problem