react-scroll-to-bottom
react-scroll-to-bottom copied to clipboard
TypeError: Object(...) is not a function
I keep getting this error when i try to declare anything from this package... struggling to know where to start to debug... copied the imports and the declarations from the demo code
import { useAnimating, useAtBottom, useAtEnd, useAtStart, useAtTop, useMode, useScrollTo, useScrollToBottom, useScrollToEnd, useScrollToStart, useScrollToTop, useSticky } from 'react-scroll-to-bottom';
const MyComponent = props => {
const [animating] = useAnimating(); const [atBottom] = useAtBottom(); const [atEnd] = useAtEnd(); const [atStart] = useAtStart(); const [atTop] = useAtTop(); const [mode] = useMode(); const [sticky] = useSticky();
const scrollTo = useScrollTo(); const scrollToBottom = useScrollToBottom(); const scrollToEnd = useScrollToEnd(); const scrollToStart = useScrollToStart(); const scrollToTop = useScrollToTop();
}
export default MyComponent;
ERROR ==> TypeError: Object(...) is not a function
I'm using "react": "16.9.0"
Same
Same, please help me
same
Let me look at this one over next 1-2 weeks.
Will be great if someone have a repo that repro this issue.
I believe you just need to publish the latest version to npm.
Is it still an issue for you?
Is it still an issue for you?
I do not have THIS problem anymore. Thank you! But I am having trouble getting any type of functionality to occur. Are there other examples that I can view to get better direction? I even when as far as to copy/paste the SAMPLE CODE from https://www.npmjs.com/package/react-scroll-to-bottom with no luck. I'm sure it's just user error, but more thorough examples or explicit direction would be wonderful. Thank you for addressing the initial issue.