Skip to content

const fetch = require('node-fetch') vs import fetch from 'node-fetch' #4

Description

@bytrangle

First off, thanks for the great demo.

However, It seems that with the newer versions of node-fetch, you will get this error: TypeError: fetch is not a function and you won't be able to post a message to Slack.

This problem is well-discussed here.

Since the project is based on create-react-app anyway, I suggest changing the import command to import fetch from 'node-fetch.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions