-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Can't import the named export 'makeFetchBody' from non EcmaScript module (only default export is available) #732
Comments
Hey, sorry for the trouble. Would you mind trying it with "@urql/core": "https://pkg.csb.dev/FormidableLabs/urql/commit/0ebb2f04/@urql/core" |
I tried it and I think it's the same error, I copied the whole error log this time:
|
When using with react the docs say to install via:
This means we don't have 2 "name": "ui",
3 "version": "0.1.0",
4 "private": true,
5 "dependencies": {
...
16 "@urql/exchange-multipart-fetch": "^0.1.5",
...
26 "react-use-form-state": "^0.11.0",
27 "typescript": "^3.6.4",
28 "urql": "https://pkg.csb.dev/FormidableLabs/urql/commit/0ebb2f04/@urql/core"
29 }, But we then can't import
Gives this error:
Could we roll a new release with the fix? :) |
It's expected that it won't work when you use So adding |
Right, but adding just that doesn't fix the problem. With this, as you say:
We get the error:
With this:
We get the error:
So, given adding that line doesn't work – what do we do? Edit: And with a third...
We get the same error – no fix:
|
Yes so |
I tried two things in the above post. Looking at the first:
It gives us the same error. I'm a little confused at what else you're proposing as the fix here? |
To quickly chime in here, I believe the CodeSandbox CI package for 0ebb2f0 is broken; this one is a newer one: https://pkg.csb.dev/FormidableLabs/urql/commit/73d2f3f8/urql and https://pkg.csb.dev/FormidableLabs/urql/commit/73d2f3f8/@urql/core |
Can you have a look at running |
Unfortunately fails. Believe it's not the core package, it's specifically Here's my package.json:
Also tried using require...
Using create-react-app w/ typescript. I guess I'll rewire webpack's config. Edit: I'll use XHR to upload files. As a bonus I can listen to onprogress :) |
Ok, I’ll investigate this further. In my quick test in Next, I can’t reproduce this anymore however. So if it’s no old version of |
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!!! |
Seems to work in the codesandbox CRA, this is odd https://codesandbox.io/s/flamboyant-moon-0kh6h?file=/src/App.js |
Super weird. Will try reinstalling everything and upgrading any global packages I have to see if it fixes. Sounds like it's something local. Appreciate it. |
okay so I tried again with I am using Next.js as you could probably already deduct from my error log |
Sorry about this! I finally found what caused our broken builds and #734 fixed it. That's released as |
@BjoernRave Are you using I am running
|
Oh, I didn’t realise you were running ts-node. I was able to replicate this bug for Could it be that it’s specific to |
I can confirm, that everythings works now for me. The error from @OriginalEXE seems to be different that what I was facing |
|
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. |
FYI, I kept getting the same issue as @BjoernRave, and not even the upgrade to However, adding the following to my webpack config seemed to fix the issue: module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
}
]
} |
It's me again with a new error
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)
The text was updated successfully, but these errors were encountered: