小编met*_*bar的帖子

无法在 Mac m1 上遵循 yew 教程 - 使用未声明的类型“Vec”

每当我运行trunk buildcargo run --target=wasm32-unknown-unknown遇到一堆范围错误时。

\n

在此输入图像描述

\n

我已经运行了rustup target add wasm32-unknown-unknowncargo install --locked wasm-bindgen-cli,但仍然没有运气。

\n

这些错误消息是什么意思?

\n

[编辑]\n输出很长,但它是这样开始的:

\n
[2m2022-06-06T01:51:52.351114Z[0m [32m INFO[0m  starting build\n[2m2022-06-06T01:51:52.351741Z[0m [32m INFO[0m spawning asset pipelines\n[2m2022-06-06T01:51:52.390738Z[0m [32m INFO[0m building yew-app\n   Compiling ryu v1.0.10\n   Compiling itoa v1.0.2\n   Compiling cfg-if v1.0.0\n   Compiling hashbrown v0.11.2\n   Compiling slab v0.4.6\n   Compiling scoped-tls-hkt v0.1.2\n   Compiling serde v1.0.137\n   Compiling thiserror v1.0.31\nerror[E0463]: can\'t find crate for `core`\n  |\n  = note: the `wasm32-unknown-unknown` target may not be installed\n  = …
Run Code Online (Sandbox Code Playgroud)

rust rust-cargo webassembly yew

5
推荐指数
1
解决办法
1486
查看次数

标签 统计

rust ×1

rust-cargo ×1

webassembly ×1

yew ×1