PeerPiper / peerpiper

Home & Browser nodes, WebAssembly Wallets, Plugin system
https://peerpiper.io
MIT License
3 stars 1 forks source link

error when starting svelte example #2

Open silkroadnomad opened 8 months ago

silkroadnomad commented 8 months ago

I followed https://github.com/PeerPiper/peerpiper/tree/master/examples/svelte-app with npm iand npm run dev as usual. and successfully started: cargo run --bin peerpiper-server

But the browser was showing me:

image

Do I have to compile or build peerpiper browser before?

DougAnderson444 commented 8 months ago

The rust() vite plugin will build it for you, no need to do it manually

But npm run dev doesn't work (yet) with wasm + Vite. Try

npm install
npm run build
npm run preview -- --open

(I fixed the docs as I noticed it still said dev)

DougAnderson444 commented 8 months ago

I have a justfile in the root that will run all the commands for you.

Install just then run

just all

I've added a note to the readme (I wasn't prepared for others to try this yet! Thanks for the issues)