Skip to content

[v5] node-fetch in ace command #3560

Answered by Julien-R44
melokki asked this question in Help
Discussion options

You must be logged in to vote

Hello,
the latest versions of node-fetch are ESM-only, as specified in the README:
https://github.com/node-fetch/node-fetch#commonjs

So downgrade to node-fetch@2 and it should be fine.
Btw, you can totally have an import for node-fetch on top level. Only IoC dependent imports are not possible on top-level.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@melokki
Comment options

Answer selected by melokki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants