I am with @Luandro Pàtwy and we are trying to do something very simple for the Handshake proposal: P2P Access-Point. Basically we want to use the ssb-core database to save the community portal infos.
Initially for testing purposes we created a vue project from scratch to be able to use the #ssb-browser using in vue-cli. Then we tried using ssb-browser-core as a base, made the bundle from the ssb-setup trying to reproduce what is done in ssb-browser-demo with the ssb-singleton-setup.
When we try to call the SSB module with the
getSSBSingleton method in main.js an error occurs in the browser :
Uncaught TypeError: window.getSSBSingleton is not a function.
But if you use the browser console and call the getSSBSingleton function it returns the function.
Another thing is that if you add the line
require('ssb-browser-core/ssb-singleton') at the beginning of main.js the error doesn't occur. This seems like strange behavior for the bundle, but we can't identify exactly what is going on.
How do you think we can solve this? @arj @Kyle Maas's Development Thoughts