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

ESM Build Broken Missing Export: fetchache doesn't export Request #1435

Closed
shellscape opened this issue Jan 18, 2021 · 1 comment
Closed

Comments

@shellscape
Copy link

See: https://github.com/Urigo/graphql-mesh/blob/4303d22a27690b0d0df6d4804aac2d233c6856a1/packages/utils/src/read-file-or-url.ts#L1

I'm using Rollup to attempt to bundle a project that uses mesh, and I received an error that index.esm.js was attempting to import Request from fetchcache and its index.esm.js, but the file doesn't export Request. Either @graphql-mesh/utils should import from cross-fetch or fetcache needs to be updated to export Request.

This is an urgently needed fix.

@shellscape
Copy link
Author

I had missed the export * from 'cross-fetch' down the code. That should work fine, and I've created a Rollup ticket for the issue rollup/rollup#3928

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