cerebral/overmind

store.subscibe is not a function

joshua1 opened this issue · 2 comments

I get the error

Unhandled Runtime Error
Uncaught TypeError: store.subscribe is not a function

when using the next version and a svelte app with svelte version 3.31.* . The svelte version in overmind-svelte is 3.20 . Any chance svelte can be made a peer dependency of overmind-svelte. i am assuming that will help.

This happens when i call a property of state as shown below

$: isLoggedIn = $state.auth.isLoggedIn

Seems like this issue is not detailed enough #483

@joshua1 This is actually a bug in the Sevlte integration. I have a fix, but I have not had time to package it up. Sevlte is more picky about when you can call subscribe in newer versions.