sindresorhus/p-queue

TypeError: PQueue is not a constructor

nunoplima opened this issue · 1 comments

Hi everyone!

I'm using "@tanstack/query-broadcast-client-experimental": "4.29.5" which uses broadcast-channel and p-queue under the hood, everything is working as expected but I do get an error: error - unhandledRejection: TypeError: PQueue is not a constructor at _callee16$ (file:///[path-to-app]/node_modules/@tanstack/query-broadcast-client-experimental/node_modules/broadcast-channel/dist/esnode/methods/node.js:570:29)

Do you have in idea on how to fix this issue?

Here's a reproducible example:
https://codesandbox.io/p/sandbox/ecstatic-dhawan-urkt30?file=%2Fpages%2F_app.tsx%3A1%2C1

Many thanks in advance