d0b29706daa988e9f57fb2e9a99a0ea93aef9429
tauri/\343\200\220\346\234\252\350\247\243\346\261\272\343\200\221error[E0308]: mismatched types.md
... | ... | @@ -0,0 +1,65 @@ |
1 | +- <https://github.com/takanotume24/Cuuri/pull/245> |
|
2 | +- <https://github.com/takanotume24/Cuuri/pull/244> |
|
3 | + |
|
4 | +にて発生。 |
|
5 | + |
|
6 | +## エラー内容 |
|
7 | + |
|
8 | +``` |
|
9 | +Run tauri-apps/tauri-action@42e9df6c59070d114bf90dcd3943a1b8f138b113 |
|
10 | +running npm [ 'run', 'tauri', 'build', '--', '--target', 'aarch64-apple-darwin' ] |
|
11 | + |
|
12 | +> [email protected] tauri |
|
13 | +> tauri build --target aarch64-apple-darwin |
|
14 | + |
|
15 | + Running beforeBuildCommand `npm run build` |
|
16 | + |
|
17 | +> [email protected] build |
|
18 | +> vue-tsc --noEmit && vite build |
|
19 | + |
|
20 | +vite v6.2.2 building for production... |
|
21 | +transforming... |
|
22 | +✓ 102 modules transformed. |
|
23 | +rendering chunks... |
|
24 | +computing gzip size... |
|
25 | +dist/index.html 0.48 kB │ gzip: 0.30 kB |
|
26 | +dist/assets/index-tK7EUtyc.css 233.39 kB │ gzip: 30.83 kB |
|
27 | +dist/assets/index-BKWoi0hE.js 301.27 kB │ gzip: 107.99 kB |
|
28 | +✓ built in 952ms |
|
29 | + Updating crates.io index |
|
30 | + Downloading crates ... |
|
31 | + Downloaded cargo_toml v0.22.1 |
|
32 | + Downloaded tauri-build v2.1.0 |
|
33 | + Downloaded tauri-utils v2.3.0 |
|
34 | + Downloaded uuid v1.15.1 |
|
35 | + Downloaded reqwest v0.12.14 |
|
36 | + Compiling tauri-utils v2.3.0 |
|
37 | + Compiling cargo_toml v0.22.1 |
|
38 | + Compiling tauri-runtime v2.4.0 |
|
39 | + Compiling tauri-build v2.1.0 |
|
40 | + Compiling tauri-plugin v2.0.2 |
|
41 | +error[E0308]: mismatched types |
|
42 | + --> /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-plugin-2.0.2/src/build/mod.rs:140:58 |
|
43 | + | |
|
44 | +140 | tauri_utils::plugin::define_global_api_script_path(path); |
|
45 | + | -------------------------------------------------- ^^^^ expected `&Path`, found `PathBuf` |
|
46 | + | | |
|
47 | + | arguments to this function are incorrect |
|
48 | + | |
|
49 | +note: function defined here |
|
50 | + --> /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tauri-utils-2.3.0/src/plugin.rs:22:10 |
|
51 | + | |
|
52 | +22 | pub fn define_global_api_script_path(path: &Path) { |
|
53 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
54 | +help: consider borrowing here |
|
55 | + | |
|
56 | +140 | tauri_utils::plugin::define_global_api_script_path(&path); |
|
57 | + | + |
|
58 | + |
|
59 | +For more information about this error, try `rustc --explain E0308`. |
|
60 | +error: could not compile `tauri-plugin` (lib) due to 1 previous error |
|
61 | +warning: build failed, waiting for other jobs to finish... |
|
62 | +failed to build app: failed to build app |
|
63 | + Error failed to build app: failed to build app |
|
64 | +Error: Command "npm ["run","tauri","build","--","--target","aarch64-apple-darwin"]" failed with exit code 1 |
|
65 | +``` |
|
... | ... | \ No newline at end of file |