Skip to content

Fetch is not a function #1579

Answered by LinusU
R0N1n-dev asked this question in Q&A
Jun 7, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Did you mean to use require here?

- const fetch = import("node-fetch");
+ const fetch = require("node-fetch");

Replies: 2 comments 2 replies

Comment options

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

Answer selected by NotMoni
Comment options

You must be logged in to vote
1 reply
@manjushsh

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants
Converted from issue

This discussion was converted from issue #1575 on June 09, 2022 10:52.