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

Error: 'default' is not exported by node_modules\animated-scroll-to\animated-scroll-to.js #16

Closed
looeee opened this issue May 1, 2018 · 1 comment

Comments

@looeee
Copy link

looeee commented May 1, 2018

Trying to include this in my file using import animateScrollTo from 'animated-scroll-to'; and I get the error:

error: Error: 'default' is not exported by node_modules\animated-scroll-to\animated-scroll-to.js with layout.js

Bundling using babel.js and rollup.js, all other imports are working fine.

@looeee
Copy link
Author

looeee commented May 1, 2018

OK, actually I just needed to add rollup-plugin-commonjs (after rollup-plugin-node-resolve )to my bundling file and it works.

@looeee looeee closed this as completed May 1, 2018
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

1 participant