A multi-cloud deployment tool for serverless functions running on AWS Lambda, Adobe I/O Runtime, Azure Functions, and Google Cloud Functions. Write once, run everywhere.
Apache License 2.0
12
stars
16
forks
source link
@adobe/fetch Headers can not be used as it is missing in Polyfill #698
build a project and include new Headers from @adobe/fetch
Platform and Version
Cloudflare
Fastly
Sample Code that illustrates the problem
import { Headers} from "@adobe/fetch";
export async function main(request, context) {
const headers = new Headers({});
}
Logs taken while reproducing problem
_adobe_fetch__WEBPACK_IMPORTED_MODULE_0__.Headers is not a constructor","stack":"$5413b4e374f939b6$export$a92b506d6c85facb@<stdin>:4494:23
$051f64557a3fd257$export$5817729456681d0a@<stdin>:4520:23
main@<stdin>:11074:41
async*handler@<stdin>:376:46
Expected Behaviour
@adobe/fetch Headers can be used
Actual Behaviour
breaks due to missing in Polyfill
Reproduce Scenario (including but not limited to)
missing dependency
Steps to Reproduce
build a project and include new Headers from @adobe/fetch
Platform and Version
Sample Code that illustrates the problem
Logs taken while reproducing problem