Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module build failed: Error: Cannot find module 'tween' #14

Open
dan-ator opened this issue Jan 24, 2018 · 1 comment
Open

Module build failed: Error: Cannot find module 'tween' #14

dan-ator opened this issue Jan 24, 2018 · 1 comment

Comments

@dan-ator
Copy link

I am using react-scroll-to-component, which relies upon scroll-to. When I try to build, it cannot find 'tween', so I rename to 'component-tween', but then on and on with other errors in other dependencies installed along with scroll-to. But if I comment out my use of react-scroll-to-component, webpack can build. Then I un-comment and it is fine and everything works. Any idea what I can do, as this seems like less than ideal?

@kriscarle
Copy link

If your are using SSR, see #9

I got react-scroll-to-component to work by only loading it on the client side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants