You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// somewhere.tsimport*asQueueWorkerfrom"../queue.worker"constworker=(QueueWorkerasany)()astypeofQueueWorker// somewhere in the fileawaitworker.getShuffledTracks(...)
Then, when the function is called, I get this error:
This is what the config for the loader looks like:
Knowing that workers and your main thread are completely seperate, it's reasonable to assume you'd need to do this in your worker code too. So I added import '@babel/polyfill'; as the very first line of my worker file. This seems to have worked, but I don't guarantee this is the proper fix.
tl;dr Try adding import '@babel/polyfill'; or import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable'; as the very first line of your worker file.
I'm trying to use this library with Babel and TypeScript, but I'm getting a weird error.
Then, when the function is called, I get this error:

This is what the config for the loader looks like:
The text was updated successfully, but these errors were encountered: