Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when starting svelte example #2

Open
silkroadnomad opened this issue Mar 2, 2024 · 2 comments
Open

error when starting svelte example #2

silkroadnomad opened this issue Mar 2, 2024 · 2 comments

Comments

@silkroadnomad
Copy link

I followed https://github.com/PeerPiper/peerpiper/tree/master/examples/svelte-app
with npm i and 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
Copy link
Contributor

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
Copy link
Contributor

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)

@silkroadnomad silkroadnomad changed the title Error when starting Svelte Example error when starting Svelte Example Mar 2, 2024
@silkroadnomad silkroadnomad changed the title error when starting Svelte Example error when starting svelte example Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants