urql: Can't import the named export 'makeFetchBody' from non EcmaScript module (only default export is available)
It’s me again with a new error
[ error ] ./node_modules/@urql/exchange-multipart-fetch/dist/urql-exchange-multipart-fetch.mjs
[1] Can't import the named export 'makeFetchBody' from non EcmaScript module (only default export is available)
[1] Could not find files for /en/movement/new in .next/build-manifest.json
[1] Could not find files for /en/movement/new in .next/build-manifest.json
[1] ModuleDependencyError: Can't import the named export 'makeFetchBody' from non EcmaScript module (only default export is available)
Versions: “urql”: “1.9.7”, “@urql/exchange-graphcache”: “2.3.5”, “@urql/exchange-multipart-fetch”: “0.1.5”,
(Did a reinstall after the new release of @urql/core)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 22 (8 by maintainers)
FYI, I kept getting the same issue as @BjoernRave, and not even the upgrade to
@urql/core@1.11.4and@urql/exchange-graphcache@2.3.8resolved it for me.However, adding the following to my webpack config seemed to fix the issue:
The weird thing is that I tried to manually specify the extension, but that did not help.
I will try to create a minimal reproduction, and will open a separate ticket.
Sorry about this! I finally found what caused our broken builds and #734 fixed it. That’s released as
@urql/core@1.11.4and@urql/exchange-graphcache@2.3.8. The broken releases have been marked as deprecated (or deleted where possible) on npm.Still seeing it, but it’s no bother. Quickly wanted to say that this is a really, really, really awesome library, so thank you all for your work!!!
Can you have a look at running
@urql/core@1.11.3please? That should fix this issue.yarn upgrade @urql/coreshould do the trick.