curlconverter/curlconverter

TypeError: Failed to fetch in electron

afeichuanqi opened this issue · 1 comments

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

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.