question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2] AbortController is not defined on @uppy/aws-s3-multipart when SSR

See original GitHub issue

When importing @uppy/aws-s3-multipart on a SSR situation (Nuxt) the error AbortController is not defined is thrown

2021-09-03 at 17 51 15@2x

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
onhatecommented, Sep 6, 2021

So, this library (and fix) not meant to be run on node.js, it just allows the server side bundle to not fail when generating the HTML for the client, I don’t think a polyfill is needed as it will never run on Server Side, instead just the check if variable it not undefined is more than enough to allow it to work.

0reactions
aduh95commented, Sep 13, 2021

I’m inclined to reconsider polyfilling AbortController if it isn’t supported on latest LTS without a flag. What do you think?

For the record, it was decided not to polyfill this: AbortController is available on all the browsers Uppy officially supports, it wouldn’t make sense to add a polyfill to fix an issue that doesn’t affect a supported environment. Instead, we decided to land https://github.com/transloadit/uppy/pull/3169 to fix the ReferenceError on environments that do not have AbortController and AbortSignal globally available; although users of such environments should be aware that they might encounter other errors if the code is trying to use those API, and they should consider upgrading to an environment that does support it (such as Node.js 16.x), or polyfill it themselves.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: AbortController is not defined #4019 - GitHub
I use ipfs-http-client in aws lambda ( .zip file archives way) which do not support node 16 yet. 2
Read more >
Why is AbortController not defined? - Stack Overflow
I tried to create AborterController in a browser and same error. Chrome. Why it doesn't support new AbortController() ? – karolis2017. Apr 17, ......
Read more >
AbortController() - Web APIs - MDN Web Docs
The AbortController() constructor creates a new AbortController object instance.
Read more >
The complete guide to AbortController in Node.js
It is for aborting certain asynchronous operations natively in Node. This tutorial will be a complete guide to the AbortController and ...
Read more >
Using AbortController to deal with race conditions in React
This article explains what race conditions are and provides a solution using the AbortController.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found