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

TypeError: Failed to fetch in electron #531

Open
afeichuanqi opened this issue Mar 9, 2023 · 1 comment
Open

TypeError: Failed to fetch in electron #531

afeichuanqi opened this issue Mar 9, 2023 · 1 comment

Comments

@afeichuanqi
Copy link

afeichuanqi commented Mar 9, 2023

image

I have never been able to use these two files in my electric, which hinders me from putting them in the webpack configuration according to the instructions, but still cannot be found

@afeichuanqi afeichuanqi changed the title Webpack could not find the file TypeError: Failed to fetch Mar 9, 2023
@afeichuanqi afeichuanqi changed the title TypeError: Failed to fetch TypeError: Failed to fetch in electron Mar 9, 2023
@verhovsky
Copy link
Member

curlconverter needs to be an ES Module (ESM) because of this top-level await statement:

await Parser.init();

Electron doesn't support ESM

curlconverter/curlconverter-vscode#1

electron/electron#21457

though the error you're getting is something different, but you won't be able to use curlconverter version 4+ in electron even if you figure out this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants