Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

import fetch from ("node-fetch"); ^^^^^^ SyntaxError: Cannot use import statement outside a module

Ugliest Unicorn answered on December 6, 2021 Popularity 9/10 Helpfulness 6/10

Contents


More Related Answers

  • importing node-fetch
  • Require cycle: node_modules\rn-fetch-blob\index.js -> node_modules\rn-fetch-blob\polyfill\index.js -> node_modules\rn-fetch-blob\polyfill\Fetch.js -> node_modules\rn-fetch-blob\index.js
  • Error [ERR_REQUIRE_ESM]: require() of ES Module node fetch
  • SyntaxError: Cannot use import statement outside a module node js
  • require() of es module node-fetch
  • require() of ES modules is not supported when importing node-fetch
  • import fetch from node-fetch error
  • node-fetch require() of es module is not supported
  • ts node Cannot use import statement outside a module
  • node.js error cannot use import outside of module

  • import fetch from ("node-fetch"); ^^^^^^ SyntaxError: Cannot use import statement outside a module

    0
    Popularity 9/10 Helpfulness 6/10 Language javascript
    Link to this answer
    Share Copy Link
    Contributed on Dec 06 2021
    Ugliest Unicorn
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.