aohua / redux-state-sync

A lightweight middleware to sync your redux state across browser tabs
MIT License
235 stars 28 forks source link

Error after adding the package @types/redux-state-sync #143

Open malininss opened 2 years ago

malininss commented 2 years ago

I use the lib redux-state-sync without problem - everything works fine. But when i add the packages with types @types/redux-state-sync i get an error:

index.js:41662 Uncaught TypeError: _broadcastChannel.BroadcastChannel is not a constructor

What could be the reason for this error?

aohua commented 2 years ago

Hi,

you may want to check the type definition in definitely-typed repo to check the issue. Don't have time to maintain the library now.

On Mon, May 23, 2022, 21:55 Sergey Malinin @.***> wrote:

I use the lib redux-state-sync without problem - everything works fine. But when i add the packages with types @types/redux-state-sync i get an error:

index.js:41662 Uncaught TypeError: _broadcastChannel.BroadcastChannel is not a constructor at createStateSyncMiddleware (index.js:41662:19) at configureStore (index.js:44006:232)

What could be the reason for this error?

— Reply to this email directly, view it on GitHub https://github.com/aohua/redux-state-sync/issues/143, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRVHHYTNRAPY56KXKEW4FLVLOE5RANCNFSM5WV6DG4A . You are receiving this because you are subscribed to this thread.Message ID: @.***>