Can't import the named export 'makeFetchBody' from non EcmaScript module (only default export is available)
See original GitHub issueIt’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)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:22 (13 by maintainers)
Top Results From Across the Web
Can't import the named export XXXX from non EcmaScript ...
the solution is to make sure that you have a webpack.config.js file in the root of your project directory that looks something like...
Read more >Can't import the named export 'makeFetchBody' from non ...
Can't import the named export 'makeFetchBody' from non EcmaScript module (only default export is available) #732.
Read more >can't import the named export from non ecmascript module ...
can't import the named export from non ecmascript module (only default export is available). Clear input field icon. Search query. Filter Icon. Recency....
Read more >"Can't import the named export from non EcmaScript module ...
KJS: "Can't import the named export from non EcmaScript module (only default export is available)" with react-map-gl-draw external interface. Relates to 1.
Read more >Can't import the named export from non EcmaScript module
Or if anyone is familiar with this issue and has specific advice, that'd be even better. Thanks! Simon. Here's the full build log...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI, I kept getting the same issue as @BjoernRave, and not even the upgrade to
@urql/core@1.11.4
and@urql/exchange-graphcache@2.3.8
resolved 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.