Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Deployment Error: "Library cannot function without fetch. So, please provide polyfill for it." #50

Open
2 tasks
bmanchester opened this issue Mar 23, 2021 · 2 comments

Comments

@bmanchester
Copy link

Type of issue

  • [ X] Bug
  • New feature
  • Enhancement

Description

When attempting to perform the deployment using "npm run deploy" I was receiving this error message: "Library cannot function without fetch. So, please provide polyfill for it."

Steps to reproduce

  1. Follow the standard deployment steps

Expected behavior

No errors

Current behavior

Error: Library cannot function without fetch. So, please provide polyfill for it.

Known workarounds

None

Possible solution

Add "import "isomorphic-fetch";" to the top of the \deployment\src\utils.ts

Context and Environment

  • Operating System: Windows 10
  • GitHub branch: Master
  • .NET Runtime: N/A
@Efaq
Copy link

Efaq commented Apr 21, 2021

I'm also having this issue, anyone looking into it?

@Efaq
Copy link

Efaq commented Apr 21, 2021

Alright this worked for me, even though I don't know the details: add the line "require('isomorphic-fetch');" to the beginning of the files "deployment\src\utils.ts" and "deployment\src\deploy.ts" and use "npm install isomorphic-fetch" instead of "npm install"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants