Yew: Unable to run examples with trunk version 0.5.0

Created on 23 Sep 2020  路  14Comments  路  Source: yewstack/yew

Problem
Web pages are plank when serving examples with trunk version 0.5.0.

Running trunk version 0.4.0 seams to resolve this issue.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Install trunk version 0.5.0 (latest version as of writing this issue). cargo install trunk --version 0.5.0
  2. Go to the examples/game_of_life directory (I chose the game of life example, but any example should be able to reproduce the same error).
  3. Serve the example trunk serve --release
  4. Go to http://127.0.0.1:8080/

Expected behavior
To see the following webpage.
image

Actual behavior
A blank, white webpage.

Environment:

  • Yew version: master
  • Rust version: 1.46.0 stable
  • Build tool, if relevant: trunk
  • Browser and version, if relevant: Mozilla Firefox 80.0.1

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [x] I don't have time to fix this right now, but maybe later
bug example

All 14 comments

@seanybaggins I'll take a look right now.

@seanybaggins are you getting any terminal output from Trunk?

I can't believe it literally only took a day to break. I thought I could finally take a break from the examples :laughing:

Yes.

  server running at http://127.0.0.1:8080/
  build completed successfully

Looks like a regression in Trunk related to serving the index.html by default. Trunk is returning a 404. I believe I've already got the fix in place. Standby.

Yup, I put the middleware after the handler itself 鈽狅笍 ... just putting the middleware first fixes the issue. A stupid regression. Will have to add some regression tests for this in Trunk.

@seanybaggins I'll push a 0.5.1 trunk release right now.

Ok, 0.5.1 release is being built right now. I tested it on this example, and it fixes the issue. Thanks for the report @seanybaggins!

@siku2 this makes me wonder if we should setup some more in-depth regression tests in trunk to clone this repo & spawn and test builds for each of the examples. Thoughts?

@thedodd Thanks for the quick fix.

@seanybaggins ok, you should be good to go now. Let me know if you run into any other issues.

@thedodd Are you okay if the ticket closes or would you like to continue discussion with @siku2?

@seanybaggins you're good. I'll chat with Siku on discord and we can coordinate regression/example tests in the Trunk repo. Thanks!

Thanks a ton for taking care of this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agausmann picture agausmann  路  3Comments

ghost picture ghost  路  5Comments

zethra picture zethra  路  5Comments

kellytk picture kellytk  路  3Comments

DenisKolodin picture DenisKolodin  路  5Comments