-
Notifications
You must be signed in to change notification settings - Fork 787
Unable to bundle using rollup #1590
Comments
It's not working for me with Webpack via Next.js either. |
@jaydenseric I've tested 2.1.0-beta.0 and it's working for me with webpack, which can bundle almost every shit you throw in it. I've also tested #1591 and it also works for me. |
@jaydenseric I've added webpack config and build to the repo if it can somehow help. |
I'm seeing the same errors using rollup in react-apollo 2.0.4 |
So the proper fix would involve That said, here are two workarounds that are available. Be sure to use the resolve plugin's
The first approach simply imports the UMD |
As this is still open, here is my workaround. apollo-cache-inmemory+1.3.5_patch.txt |
Our bundling strategy has been revamped in recent versions of |
Seems to be fixed now, thanks 🎉 |
Intended outcome:
I'm trying to bundle an app using rollup. Bundling basic react app works, but gives errors when react-apollo is added.
Actual outcome:
Rollup gives errors. The problem is that without
browser
flag it takesstream
and with flag it takesumd
version. I've seen this PR and with latest beta it gives this errors. Not sure how to solve this normally.Rollup errors:
browser
flag in configHow to reproduce the issue:
Here is a simple reproduction repo - https://github.com/VladShcherbin/rollup-react-app
Use two commands to see errors, use this flag to toggle
browser
target:Version
Package versions
The text was updated successfully, but these errors were encountered: