Dynamic loading of node-fetch
brioux opened this issue · 0 comments
brioux commented
Update import fetch from 'node-fetch'
using the following dynamic import
import { RequestInfo, RequestInit } from 'node-fetch'; const fetch = (url: RequestInfo, init?: RequestInit) => import('node-fetch').then(({ default: fetch }) => fetch(url, init));
Because this package was converted to be an ESM only package in version 3