flyingant / react-scroll-to-component

smooth scrolling to react component via reference.
https://flyingant.github.io/react-scroll-to-component/
168 stars 27 forks source link

Tween is not a function on meteor. #23

Open capi1O opened 5 years ago

capi1O commented 5 years ago

Using meteor 1.8, not doing server side rendering.

First on meteor startup after installing this module I have the following warning :

Unable to resolve some modules:

  "tween" in project/node_modules/scroll-to/index.js (web.browser.legacy)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save tween

I also tried to install npm install component/tween but issue remained.

Then when trying scrollToComponent(someRef) I got the error Tween is not a function.

I tried to require it in componentDidMount and also tried react-scroll-to-component-ssr (see issue #8) but same error.