Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): update documentation for node-fetch to use CommonJS #35129

Merged
merged 1 commit into from
Mar 14, 2022
Merged

chore(docs): update documentation for node-fetch to use CommonJS #35129

merged 1 commit into from
Mar 14, 2022

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.

None yet

3 participants