Skip to content

Problem with importing node-fetch v3.0.0 and node v16.5.0 #1266

@ttonya

Description

@ttonya

Even though I import node fetch as instructed for v3.0.0:
import fetch from 'node-fetch';

I get en error:
Error: Must use import to load ES Module: ...\node_modules\node-fetch\src\index.js
require() of ES modules is not supported.

after downgrading to node-fetch v2.6.1, works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions