Closed repoit closed 2 years ago
I assume it's due to being offered as an ESM module? Haven't looked into how react-scripts support those.
In that case 0.9.3 should still work fine. The api is pretty much the same, it just lacks the hook.
Merging #77 could possibly have helped. Can you check whether 1.0.2 works for you?
@danielberndt Upgrading to 1.0.2 fixed the issue. Thank you.
React-sticky-box 1.0.1 works fine when using react scripts 5.X
However, when using 4.X for react-scripts the import of react-sticky-box fails
import StickyBox from "react-sticky-box";
Module not found: Can't resolve 'react-sticky-box'
Any idea on how to resolve this issue? Upgrading to react-scripts is not really an option as it introduced major code breaks to many depending libraries.