Skip to content

Must use import to load ES Module when installed node-fetch #5

@Siegrift

Description

@Siegrift

This follows the video: https://explorers.netlify.com/learn/up-and-running-with-serverless-functions/integrate-with-a-third-party-api-with-serverless-functions

however you will get: Must use import to load ES Module. This is because node-fetch is now ESM only (see: https://github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md#converted-to-es-module)

You have two options (maybe more...):

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