Skip to content

Conversation

@PaulieScanlon
Copy link
Contributor

Description

I've changed the node-fetch import to use the commonJs method.

Documentation

node-fetch from v3 is an ESM-only module - you are not able to import it with require()

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 14, 2022
@PaulieScanlon PaulieScanlon changed the title docs: update node-fetch to use .cjs docs: update documentation for node-fetch to use commonJs Mar 14, 2022
@wardpeet wardpeet added type: documentation An issue or pull request for improving or updating Gatsby's documentation bot: merge on green Gatsbot will merge these PRs automatically when all tests passes and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 14, 2022
@LekoArts LekoArts changed the title docs: update documentation for node-fetch to use commonJs chore(docs): update documentation for node-fetch to use commonJs Mar 14, 2022
@LekoArts LekoArts changed the title chore(docs): update documentation for node-fetch to use commonJs chore(docs): update documentation for node-fetch to use CommonJS Mar 14, 2022
@LekoArts LekoArts merged commit cd0b80c into gatsbyjs:master Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: merge on green Gatsbot will merge these PRs automatically when all tests passes type: documentation An issue or pull request for improving or updating Gatsby's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants