yewstack/yew

Yew 0.21.0 build error

Cayincc opened this issue · 2 comments

Problem
trunk serve build error on wsl2

Steps To Reproduce
Steps to reproduce the behavior:

  1. trunk serve

Expected behavior
No Error
Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment:

  • Yew version: 0.21.0
  • Rust version:
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/cayin/.rustup

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.74.0 (79e9716c9 2023-11-13)
  • Target, if relevant: wasm32-unknown-unknown
  • Build tool, if relevant:
  Vendoring addr2line v0.20.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/addr2line-0.20.0) to /home/cayin/repo/yew-demo/vendor/addr2line
   Vendoring adler v1.0.2 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/adler-1.0.2) to /home/cayin/repo/yew-demo/vendor/adler
   Vendoring anymap2 v0.13.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anymap2-0.13.0) to /home/cayin/repo/yew-demo/vendor/anymap2
   Vendoring autocfg v1.1.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/autocfg-1.1.0) to /home/cayin/repo/yew-demo/vendor/autocfg
   Vendoring backtrace v0.3.68 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.68) to /home/cayin/repo/yew-demo/vendor/backtrace
   Vendoring bincode v1.3.3 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bincode-1.3.3) to /home/cayin/repo/yew-demo/vendor/bincode
   Vendoring boolinator v2.4.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/boolinator-2.4.0) to /home/cayin/repo/yew-demo/vendor/boolinator
   Vendoring bumpalo v3.13.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bumpalo-3.13.0) to /home/cayin/repo/yew-demo/vendor/bumpalo
   Vendoring bytes v1.4.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bytes-1.4.0) to /home/cayin/repo/yew-demo/vendor/bytes
   Vendoring cc v1.0.79 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.79) to /home/cayin/repo/yew-demo/vendor/cc
   Vendoring cfg-if v1.0.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cfg-if-1.0.0) to /home/cayin/repo/yew-demo/vendor/cfg-if
   Vendoring console_error_panic_hook v0.1.7 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console_error_panic_hook-0.1.7) to /home/cayin/repo/yew-demo/vendor/console_error_panic_hook
   Vendoring equivalent v1.0.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/equivalent-1.0.1) to /home/cayin/repo/yew-demo/vendor/equivalent
   Vendoring fnv v1.0.7 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fnv-1.0.7) to /home/cayin/repo/yew-demo/vendor/fnv
   Vendoring form_urlencoded v1.2.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/form_urlencoded-1.2.0) to /home/cayin/repo/yew-demo/vendor/form_urlencoded
   Vendoring futures v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures
   Vendoring futures-channel v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-channel-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-channel
   Vendoring futures-core v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-core-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-core
   Vendoring futures-io v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-io-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-io
   Vendoring futures-macro v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-macro-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-macro
   Vendoring futures-sink v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-sink-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-sink
   Vendoring futures-task v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-task-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-task
   Vendoring futures-util v0.3.28 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28) to /home/cayin/repo/yew-demo/vendor/futures-util
   Vendoring getrandom v0.2.11 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.11) to /home/cayin/repo/yew-demo/vendor/getrandom
   Vendoring gimli v0.27.3 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gimli-0.27.3) to /home/cayin/repo/yew-demo/vendor/gimli
   Vendoring gloo v0.10.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-0.10.0) to /home/cayin/repo/yew-demo/vendor/gloo
   Vendoring gloo-console v0.3.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-console-0.3.0) to /home/cayin/repo/yew-demo/vendor/gloo-console
   Vendoring gloo-dialogs v0.2.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-dialogs-0.2.0) to /home/cayin/repo/yew-demo/vendor/gloo-dialogs
   Vendoring gloo-events v0.2.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-events-0.2.0) to /home/cayin/repo/yew-demo/vendor/gloo-events
   Vendoring gloo-file v0.3.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-file-0.3.0) to /home/cayin/repo/yew-demo/vendor/gloo-file
   Vendoring gloo-history v0.2.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-history-0.2.1) to /home/cayin/repo/yew-demo/vendor/gloo-history
   Vendoring gloo-net v0.4.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-net-0.4.0) to /home/cayin/repo/yew-demo/vendor/gloo-net
   Vendoring gloo-render v0.2.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-render-0.2.0) to /home/cayin/repo/yew-demo/vendor/gloo-render
   Vendoring gloo-storage v0.3.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-storage-0.3.0) to /home/cayin/repo/yew-demo/vendor/gloo-storage
   Vendoring gloo-timers v0.3.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-timers-0.3.0) to /home/cayin/repo/yew-demo/vendor/gloo-timers
   Vendoring gloo-utils v0.2.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-utils-0.2.0) to /home/cayin/repo/yew-demo/vendor/gloo-utils
   Vendoring gloo-worker v0.4.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-0.4.0) to /home/cayin/repo/yew-demo/vendor/gloo-worker
   Vendoring gloo-worker-macros v0.1.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gloo-worker-macros-0.1.0) to /home/cayin/repo/yew-demo/vendor/gloo-worker-macros
   Vendoring hashbrown v0.14.2 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hashbrown-0.14.2) to /home/cayin/repo/yew-demo/vendor/hashbrown
   Vendoring hermit-abi v0.3.2 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hermit-abi-0.3.2) to /home/cayin/repo/yew-demo/vendor/hermit-abi
   Vendoring http v0.2.9 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9) to /home/cayin/repo/yew-demo/vendor/http
   Vendoring implicit-clone v0.4.8 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/implicit-clone-0.4.8) to /home/cayin/repo/yew-demo/vendor/implicit-clone
   Vendoring implicit-clone-derive v0.1.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/implicit-clone-derive-0.1.1) to /home/cayin/repo/yew-demo/vendor/implicit-clone-derive
   Vendoring indexmap v2.1.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.1.0) to /home/cayin/repo/yew-demo/vendor/indexmap
   Vendoring itoa v1.0.9 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itoa-1.0.9) to /home/cayin/repo/yew-demo/vendor/itoa
   Vendoring js-sys v0.3.64 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/js-sys-0.3.64) to /home/cayin/repo/yew-demo/vendor/js-sys
   Vendoring libc v0.2.150 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.150) to /home/cayin/repo/yew-demo/vendor/libc
   Vendoring log v0.4.19 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/log-0.4.19) to /home/cayin/repo/yew-demo/vendor/log
   Vendoring memchr v2.5.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/memchr-2.5.0) to /home/cayin/repo/yew-demo/vendor/memchr
   Vendoring miniz_oxide v0.7.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/miniz_oxide-0.7.1) to /home/cayin/repo/yew-demo/vendor/miniz_oxide
   Vendoring num_cpus v1.16.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num_cpus-1.16.0) to /home/cayin/repo/yew-demo/vendor/num_cpus
   Vendoring object v0.31.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/object-0.31.1) to /home/cayin/repo/yew-demo/vendor/object
   Vendoring once_cell v1.18.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0) to /home/cayin/repo/yew-demo/vendor/once_cell
   Vendoring percent-encoding v2.3.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/percent-encoding-2.3.0) to /home/cayin/repo/yew-demo/vendor/percent-encoding
   Vendoring pin-project v1.1.2 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-1.1.2) to /home/cayin/repo/yew-demo/vendor/pin-project
   Vendoring pin-project-internal v1.1.2 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-internal-1.1.2) to /home/cayin/repo/yew-demo/vendor/pin-project-internal
   Vendoring pin-project-lite v0.2.13 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-project-lite-0.2.13) to /home/cayin/repo/yew-demo/vendor/pin-project-lite
   Vendoring pin-utils v0.1.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pin-utils-0.1.0) to /home/cayin/repo/yew-demo/vendor/pin-utils
   Vendoring pinned v0.1.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pinned-0.1.0) to /home/cayin/repo/yew-demo/vendor/pinned
   Vendoring prettyplease v0.2.15 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prettyplease-0.2.15) to /home/cayin/repo/yew-demo/vendor/prettyplease
   Vendoring proc-macro-crate v1.3.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-crate-1.3.1) to /home/cayin/repo/yew-demo/vendor/proc-macro-crate
   Vendoring proc-macro-error v1.0.4 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4) to /home/cayin/repo/yew-demo/vendor/proc-macro-error
   Vendoring proc-macro-error-attr v1.0.4 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro-error-attr-1.0.4) to /home/cayin/repo/yew-demo/vendor/proc-macro-error-attr
   Vendoring proc-macro2 v1.0.66 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66) to /home/cayin/repo/yew-demo/vendor/proc-macro2
   Vendoring prokio v0.1.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prokio-0.1.0) to /home/cayin/repo/yew-demo/vendor/prokio
   Vendoring quote v1.0.31 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quote-1.0.31) to /home/cayin/repo/yew-demo/vendor/quote
   Vendoring rustc-demangle v0.1.23 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-demangle-0.1.23) to /home/cayin/repo/yew-demo/vendor/rustc-demangle
   Vendoring rustversion v1.0.14 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustversion-1.0.14) to /home/cayin/repo/yew-demo/vendor/rustversion
   Vendoring ryu v1.0.15 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ryu-1.0.15) to /home/cayin/repo/yew-demo/vendor/ryu
   Vendoring serde v1.0.171 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.171) to /home/cayin/repo/yew-demo/vendor/serde
   Vendoring serde-wasm-bindgen v0.6.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-wasm-bindgen-0.6.1) to /home/cayin/repo/yew-demo/vendor/serde-wasm-bindgen
   Vendoring serde_derive v1.0.171 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_derive-1.0.171) to /home/cayin/repo/yew-demo/vendor/serde_derive
   Vendoring serde_json v1.0.103 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.103) to /home/cayin/repo/yew-demo/vendor/serde_json
   Vendoring serde_urlencoded v0.7.1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_urlencoded-0.7.1) to /home/cayin/repo/yew-demo/vendor/serde_urlencoded
   Vendoring slab v0.4.8 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slab-0.4.8) to /home/cayin/repo/yew-demo/vendor/slab
   Vendoring syn v2.0.32 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.32) to /home/cayin/repo/yew-demo/vendor/syn
   Vendoring thiserror v1.0.43 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-1.0.43) to /home/cayin/repo/yew-demo/vendor/thiserror
   Vendoring thiserror-impl v1.0.43 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/thiserror-impl-1.0.43) to /home/cayin/repo/yew-demo/vendor/thiserror-impl
   Vendoring tokio v1.34.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.34.0) to /home/cayin/repo/yew-demo/vendor/tokio
   Vendoring tokio-stream v0.1.14 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-stream-0.1.14) to /home/cayin/repo/yew-demo/vendor/tokio-stream
   Vendoring toml_datetime v0.6.5 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/toml_datetime-0.6.5) to /home/cayin/repo/yew-demo/vendor/toml_datetime
   Vendoring toml_edit v0.19.15 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/toml_edit-0.19.15) to /home/cayin/repo/yew-demo/vendor/toml_edit
   Vendoring tracing v0.1.40 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.40) to /home/cayin/repo/yew-demo/vendor/tracing
   Vendoring tracing-attributes v0.1.27 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-attributes-0.1.27) to /home/cayin/repo/yew-demo/vendor/tracing-attributes
   Vendoring tracing-core v0.1.32 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32) to /home/cayin/repo/yew-demo/vendor/tracing-core
   Vendoring unicode-ident v1.0.11 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.11) to /home/cayin/repo/yew-demo/vendor/unicode-ident
   Vendoring version_check v0.9.4 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/version_check-0.9.4) to /home/cayin/repo/yew-demo/vendor/version_check
   Vendoring wasi v0.11.0+wasi-snapshot-preview1 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasi-0.11.0+wasi-snapshot-preview1) to /home/cayin/repo/yew-demo/vendor/wasi
   Vendoring wasm-bindgen v0.2.87 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.87) to /home/cayin/repo/yew-demo/vendor/wasm-bindgen
   Vendoring wasm-bindgen-backend v0.2.87 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-backend-0.2.87) to /home/cayin/repo/yew-demo/vendor/wasm-bindgen-backend
   Vendoring wasm-bindgen-futures v0.4.37 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-futures-0.4.37) to /home/cayin/repo/yew-demo/vendor/wasm-bindgen-futures
   Vendoring wasm-bindgen-macro v0.2.87 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-macro-0.2.87) to /home/cayin/repo/yew-demo/vendor/wasm-bindgen-macro
   Vendoring wasm-bindgen-macro-support v0.2.87 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-macro-support-0.2.87) to /home/cayin/repo/yew-demo/vendor/wasm-bindgen-macro-support
   Vendoring wasm-bindgen-shared v0.2.87 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-shared-0.2.87) to /home/cayin/repo/yew-demo/vendor/wasm-bindgen-shared
   Vendoring web-sys v0.3.64 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/web-sys-0.3.64) to /home/cayin/repo/yew-demo/vendor/web-sys
   Vendoring winnow v0.5.19 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winnow-0.5.19) to /home/cayin/repo/yew-demo/vendor/winnow
   Vendoring yew v0.21.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-0.21.0) to /home/cayin/repo/yew-demo/vendor/yew
   Vendoring yew-macro v0.21.0 (/home/cayin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-macro-0.21.0) to /home/cayin/repo/yew-demo/vendor/yew-macro
  • OS, if relevant:
HOST
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2715
GUEST
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
  • Browser and version, if relevant: Eage Version 119.0.2151.72 (Official build) (64-bit)

Questionnaire

This issue pops up when you attempt to upgrade a project from using yew 0.20 to yew 0.21. Let's take the official template as an example:

If you run the following command:

cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template

You'll get a project that's set up with yew 0.20. Now, if you try to update the version to yew 0.21 manually by changing it inside the cargo.toml file, it'll throw this error.

Screenshot from 2023-11-25 22-30-35

If you delete the Cargo.lock file and rerun trunk serve, the issue goes away.

Thanks, solved my issue. 🤗