tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] error: could not compile `json-patch`

Open dev-itzarun opened this issue 2 years ago • 1 comments

Describe the bug

Tauri npm run tauri dev failed

The actual Error : error: could not compile json-patch

Caused by: process didn't exit successfully: rustc --crate-name json_patch --edition=2018 C:\Users\aruns\.cargo\registry\src\github.com-1ecc6299db9ec823\json-patch-0.2.7\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"diff\"" --cfg "feature=\"treediff\"" -C metadata=6afce7137d566ea4 -C extra-filename=-6afce7137d566ea4 --out-dir E:\svelte_projects\my-pc-biller\src-tauri\target\debug\deps -L dependency=E:\svelte_projects\my-pc-biller\src-tauri\target\debug\deps --extern serde=E:\svelte_projects\my-pc-biller\src-tauri\target\debug\deps\libserde-d1c43ff65e7b4972.rmeta --extern serde_json=E:\svelte_projects\my-pc-biller\src-tauri\target\debug\deps\libserde_json-82fa90a823ca3606.rmeta --extern treediff=E:\svelte_projects\my-pc-biller\src-tauri\target\debug\deps\libtreediff-d30ddb8470b9e576.rmeta --cap-lints allow (exit code: 1263094860)
warning: build failed, waiting for other jobs to finish...

npm run tauri dev

image

Reproduction

No response

Expected behavior

No response

Platform and versions

image

Stack trace

No response

Additional context

No response

dev-itzarun avatar Jan 24 '23 15:01 dev-itzarun

Can you try running cargo update inside your src-tauri folder?

Also deleting src-tauri/target/debug/ sometimes helps.

Other than that it's quite hard to help because the error isn't really helpful 🤔

FabianLars avatar Jan 24 '23 17:01 FabianLars