react-scroll-to-component icon indicating copy to clipboard operation
react-scroll-to-component copied to clipboard

Tween is not a function on meteor.

Open capi1O opened this issue 5 years ago • 0 comments

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.

capi1O avatar Feb 27 '19 12:02 capi1O