TodoMVC: How to build and run?
malaire opened this issue · comments
TodoMVC doesn't have any documentation of how to build and run the example.
Simple cargo run
fails with following error on Debian 11:
panicked at 'cannot call wasm-bindgen imported functions on non-wasm targets', /home/malaire/.cargo/registry/src/localhost-86e39b43d7f3e3e9/js-sys-0.3.59/src/lib.rs:5365:1
I assume you followed the getting started guide for web and therefore tried to use trunk serve
after setting up your toolchain?
Will try this example myself in a moment.
Did work: https://dioxuslabs.com/reference/platforms/web#getting-started-web
Good luck!
Primary README contains this phrase:
Each project has information on how to build/deploy.
Yet I don't see such information in TodoMVC's README.
https://dioxuslabs.com/reference/platforms/web#getting-started-web
Error 404
Page not found
The doc seems to be here https://dioxuslabs.com/docs/0.3/guide/en/getting_started/web.html
$ cd todomvc
$ dioxus serve
...
Dioxus @ v0.1.5 [20:19:54]
> Local : http://localhost:8080/
> NetWork : http://xxx:8080/
> Profile : Debug
> Hot Reload : Normal
> Index Template : Custom [index.html]
> URL Rewrite [index_on_404] : True
> Build Time Use : 3937 millis
[INFO] A perfect compilation!
It compiles, but the page is blank.
![](https://private-user-images.githubusercontent.com/25300418/244936302-2edfad58-bd90-4789-ae40-6c45183b4a87.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTQwMTI5NDcsIm5iZiI6MTcxNDAxMjY0NywicGF0aCI6Ii8yNTMwMDQxOC8yNDQ5MzYzMDItMmVkZmFkNTgtYmQ5MC00Nzg5LWFlNDAtNmM0NTE4M2I0YTg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDI1VDAyMzcyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmMjY4MmI4NDAzYzY5YTY2OGZkMTVmZDI4Yzg2MDY1Njc3MzUzZDc3ZmEyY2M2MGNkOWRkYmM1OTk3YzAzNjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6A_i-465CYlONqLBTT2Jif7rDWlYBwmKzlcudFenOAY)
I had the same issue removing the index.html
helped
https://dioxuslabs.com/reference/platforms/web#getting-started-web is 404.
The TodoMVC docs
folder doesnt display in the browser.
Just a simple markdown based instructions would be much easier.
https://dioxuslabs.com/reference/platforms/web#getting-started-web is 404.
The TodoMVC
docs
folder doesnt display in the browser.Just a simple markdown based instructions would be much easier.
Where did you find that link? It should now be https://dioxuslabs.com/learn/0.4/getting_started/wasm
The docs are all markdown that lives here: https://github.com/DioxusLabs/docsite/tree/master/docs-src/0.4. If you prefer raw markdown, you can use that folder directly
Thanks @ealmloff
I've read the getting started guides on https://dioxuslabs.com/learn/0.4/getting_started/, now I want to review some examples.
Maybe adding the following to the TodoMVC readme could help:
cargo install dioxus-cli
dx serve
Thanks @ealmloff
I've read the getting started guides on https://dioxuslabs.com/learn/0.4/getting_started/, now I want to review some examples.
Maybe adding the following to the TodoMVC readme could help:
cargo install dioxus-cli dx serve
Adding something to any/all of the examples about how to run them would be great!