I have a ClojureScript project using shadow-cljs
. In this project I am using the NPM package @material-ui
, which works fine.
Now I would like to use react-swipeable-views. Therefor I have extended my package.json
:
"dependencies": {
"@material-ui/core": "^4.5.2",
"@material-ui/icons": "^4.5.1",
"highlight.js": "9.15.10",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-flip-move": "3.0.3",
"react-highlight.js": "1.0.7",
"react-swipeable-views": "0.13.3"
}
When I try to require ["react-swipeable-views" :as sv]
I get this error from shadow-cljs:
The required JS dependency "dom-helpers/transition/properties" is not available, it was required by "node_modules/react-swipeable-views/lib/SwipeableViews.js".
And in fact, there is no transition
directory in node_modules/dom-helpers/
. But there is import transitionInfo from 'dom-helpers/transition/properties';
in node_modules/react-swipeable-views/src/SwipeableViews.js
.
It looks like a dependency bug in react-swipeable-views
, but I am a newbie to NPM.
Any suggestions what the problem is? Or how to debug?
UPDATE
It seams react-swipeable-views
depends on the outdated dom-helpers@3.4.0
while shadow-cljs
uses the current dom-helpers@5.1.3
. See https://github.com/oliviertassinari/react-swipeable-views/issues/542
Is it possible to use both? Or will I have to wait until someone fixes react-swipeable-views
?