-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 has trouble importing apollo-cache-inmemory CommonJS dependencies. #4071
Comments
benjamn
changed the title
apollo-cache-inmemory ships modules which cannot be imported
Rollup has trouble importing apollo-cache-inmemory CommonJS dependencies.
Oct 29, 2018
2 tasks
Is there any update on getting the PR merged? |
Amazing! Thank you! |
kairos666
added a commit
to kairos666/marvel-graphql-client
that referenced
this issue
Jan 17, 2019
/!\ known bug dirty fix necessary, change first line of Optimism.js package to play nice with rollup apollographql/apollo-client#4071
kairos666
added a commit
to kairos666/marvel-graphql-client
that referenced
this issue
Jan 17, 2019
/!\ known bug dirty fix necessary, change first line of Optimism.js package to play nice with rollup apollographql/apollo-client#4071 /!\ useless import declaration of graphql-tag to avoid run-time error
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Intended outcome:
Should not throw errors
Actual outcome:
Runtime error is thrown
How to reproduce the issue:
Versions
Fix
replace line one of optimism.js with
It seems like wrap should be imported as a module in the typescript source, and any typescript-related errors should be solved, rather than hinting to the compiler to disable checking on that line, not via the non-standard node/commonjs
require
function.See Also
#3047
The text was updated successfully, but these errors were encountered: