-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Rollup Complaining About External Dependencies #524
Comments
It's a Problem was that, you can guess, |
@dralletje Thanks! Let's hope they respond to your PR soon. |
I'm having a similar error when using ionic2 rc0. I'm new to rollup and trying to shift my project from gulp to rollup. I've the 5.0.4 commonjs plugin Any idea on how I can solve this? |
Here's a gist of a minimal example of this issue: https://gist.github.com/sunjay/af3c1a7c87b5c3aeb379
I was trying to setup rollup with React, Redux and React-Redux today when I came across this bug. I'm not sure if this is a bug in rollup.js or one of its plugins so I'm just filing it here.
The problem is that
react-redux
usesrequire('redux')
directly (since it's not an ES6 library).redux
doesn't export any default so I get the following error:This happens when I run
rollup -c
. Since this is an external dependency and since it isn't using es6 in the first place, there's not a lot I can do about this bug.I was able to isolate it down to the bare minimum so I know that it isn't anything in my code specifically.
Here's my
rollup.config.js
:The
index.jsx
file:The
package.json
file:I had a feeling that this might be something to do with the commonjs or node resolve plugins, but I didn't see any option in their documentation that would address this.
Maybe there's something that I missed?
Thanks
The text was updated successfully, but these errors were encountered: