arj03 / ssb-browser-demo

A secure scuttlebutt client interface running in the browser
Other
58 stars 11 forks source link

Uncaught TypeError: SSB.db.getIndex(...).getGraphForFeed is not a function #191

Closed KyleMaas closed 3 years ago

KyleMaas commented 3 years ago
connected to: @lbocEWqF2Fg6WMYLgmfYvqJlMfL7hiqVAV6ANjHWNw8=.ed25519
bundle-ui.js:140438 syncing with @lbocEWqF2Fg6WMYLgmfYvqJlMfL7hiqVAV6ANjHWNw8=.ed25519
bundle-ui.js:140051 syncing feeds
bundle-ui.js:170930 Uncaught TypeError: SSB.db.getIndex(...).getGraphForFeed is not a function
    at bundle-ui.js:170930
    at runConnectedWithDataCallbacks (bundle-ui.js:627)
    at EventEmitter.<anonymous> (bundle-ui.js:700)
    at EventEmitter.emit (bundle-ui.js:74592)
    at setupRPC (bundle-ui.js:134642)
    at bundle-ui.js:134669
    at next (bundle-ui.js:120066)
    at bundle-ui.js:120072
    at _cb (bundle-ui.js:120424)
    at bundle-ui.js:134213
bundle-ui.js:140076 full feeds: 476.548828125 ms

Error came from this line:

https://github.com/arj03/ssb-browser-demo/blob/734b2464c682b38db48ade0e9faf7f53eb60ffd0/ui/onboarding-dialog.js#L120

arj03 commented 3 years ago

Damn, thought I grepped the whole code :(

arj03 commented 3 years ago

Fixed now :)

cryptix commented 3 years ago

FYI: git grep is one of my favorite tools for this kind of stuff.

excluding node_modules correctly with plain grep can be very annoying. git grep always just works on checked in code.