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

Error [ERR_REQUIRE_ESM]: require() of ES Module #1810

Open
zhaoyiming0803 opened this issue Apr 16, 2024 · 1 comment
Open

Error [ERR_REQUIRE_ESM]: require() of ES Module #1810

zhaoyiming0803 opened this issue Apr 16, 2024 · 1 comment
Labels

Comments

@zhaoyiming0803
Copy link

Reproduction

Steps to reproduce the behavior:

  1. npm install --save node-fetch
  2. import fetch from 'node-fetch'
  3. error in terminal: Error [ERR_REQUIRE_ESM]: require() of ES Module

Expected behavior

Screenshots

Your Environment

software version
node-fetch 3.3.2
node 16.14.2
npm 8.5.0
Operating System Mac

Additional context

@amerharb
Copy link

already reported 1809

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

No branches or pull requests

2 participants