-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ReferenceError: AbortController is not defined #4019
Comments
Please upgrade to node 16 - node 14 is not supported any more. |
@achingbrain I wonder why it is working on react app of same node(14.5.0) environment? |
React runs in the browser and |
I use ipfs-http-client in aws lambda ( .zip file archives way) which do not support node 16 yet. |
I'm also using AWS Lambda with a Node 14 Runtime. I got around the issue by installing import {AbortController} from "node-abort-controller";
global.AbortController = AbortController; Seems to work fine, have been able to add files to IPFS with no trouble. |
@OrderAndCh4oS that's a decent workaround until AWS allows everyone to use Active LTS versions of node. |
Implement the postponed complete upgrade to node v16 to circumvent the ipfs-js issue: ipfs/js-ipfs#4019
Implement the postponed complete upgrade to node v16 to circumvent the ipfs-js issue: ipfs/js-ipfs#4019
Closing because a solution has been found - either upgrade to node 16 or use a polyfill. |
aws lambda support node 16 now |
Severity:
Description:
Getting error
ReferenceError: AbortController is not defined
Tried to use
ipfs-http-client
v55.0.0 in nodejs like below. It seems working fine in client side(reactjs app) but it is throwing error in nodejs backendSteps to reproduce the error:
The text was updated successfully, but these errors were encountered: