Skip to content

Conversation

@iugo
Copy link

@iugo iugo commented Mar 14, 2019

If use webpack, require('node-fetch') is not imported by default. Then the fetch is a undefined, not a function.

@ilanc suggested using require('node-fetch').default.

webpack/webpack#4742
node-fetch/node-fetch#450 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant