Closed mateuszjarzewski closed 2 years ago
I've been looking at this recently and found that some of the packages are maybe based on node modules, so need additional bits such as https://www.npmjs.com/package/process included to get working. I'm new to modern JavaScript so still re-acquainting myself.
The approach by https://github.com/DougAnderson444/ipfs-vite-svelte-kit helped me a lot.
So this cannot work in browser? Why there is browser example then?
this looks like an issue with how the orbit-db-identity-provider bundle was built. The package uses webpack 5 but looks like its missing the polyfill configuration in https://github.com/orbitdb/orbit-db-identity-provider/blob/main/conf/webpack.config.js
I guess this project have more dependies than typical project so this might be the root of my confusion. Thanks for help.
Is it possible to find example of working ipfs-log in browser?
The best I got is this:
Sadly it does not work. IPFS alone works fine.
I mean I always thought having example like this is essential for any javascript in-browser-also-or-perhaps-first project. For people that just want to get up and go and test this technology, for people with no access or no knowledge required to build this project. It's like 100 ft. wall for 90% of exceptionally good javascript developers.