tickets icon indicating copy to clipboard operation
tickets copied to clipboard

请问下build会报错tauri-plugin-sql,是什么问题:)

Open lvgj-stack opened this issue 2 years ago • 7 comments

error: no matching package named tauri-plugin-sql found location searched: https://github.com/tauri-apps/plugins-workspace?branch=v1#a305ad3d required by package tickets v0.0.0 (/Users/xxx/tmp/tickets/src-tauri) Error failed to build app: failed to build app error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lvgj-stack avatar Jul 10 '23 06:07 lvgj-stack

这个包安装失败了。重新安装 包

shiyutim avatar Jul 10 '23 11:07 shiyutim

https://tauri.app/zh-cn/v1/guides/getting-started/prerequisites

lvgj-stack avatar Jul 10 '23 11:07 lvgj-stack

上次build成功之后,后面还是会出现这问题orz

lvgj-stack avatar Jul 14 '23 03:07 lvgj-stack

WARNING: Only one package manager should be used, but found npm and yarn. Please remove unused package manager lock files, will use npm for now!

[✔] Environment - OS: Mac OS 13.4.0 X64 ✔ Xcode Command Line Tools: installed ✔ rustc: 1.63.0 ✔ Cargo: 1.63.0 (fd9c4297c 2022-07-01) ✔ rustup: 1.26.0 (5af9b9484 2023-04-05) ✔ Rust toolchain: stable-aarch64-apple-darwin (default) - node: 16.20.0 - pnpm: 8.6.3 - yarn: 1.22.19 - npm: 8.19.4

[-] Packages - tauri [RUST]: 1.3.0 - tauri-build [RUST]: 1.3.0 - wry [RUST]: 0.24.3 - tao [RUST]: 0.16.2 - @tauri-apps/api [NPM]: 1.3.0 (outdated, latest: 1.4.0) - @tauri-apps/cli [NPM]: 1.3.1 (outdated, latest: 1.4.0)

[-] App

lvgj-stack avatar Jul 14 '23 04:07 lvgj-stack

➜ tickets git:(0a39048) yarn install yarn install v1.22.19 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... [4/4] 🔨 Building fresh packages... success Saved lockfile. ✨ Done in 19.87s. ➜ tickets git:(0a39048) ✗ yarn tauri build yarn run v1.22.19 $ tauri build Running beforeBuildCommand yarn build $ vite build vite v4.3.9 building for production... ✓ 1151 modules transformed. dist/index.html 0.46 kB │ gzip: 0.31 kB dist/assets/dm-84c08ce0.css 2.21 kB │ gzip: 0.61 kB dist/assets/index-72465220.css 391.06 kB │ gzip: 47.81 kB dist/assets/dm-2d967aaa.js 21.17 kB │ gzip: 8.88 kB dist/assets/index-43eda9c6.js 932.12 kB │ gzip: 274.96 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:

  • Using dynamic import() to code-split the application
  • Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
  • Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. ✓ built in 2.97s error: no matching package named tauri-plugin-sql found location searched: https://github.com/tauri-apps/plugins-workspace?branch=v1#a305ad3d required by package tickets v0.0.0 (/Users/xx/tmp/tickets/src-tauri) Error failed to build app: failed to build app error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lvgj-stack avatar Jul 14 '23 04:07 lvgj-stack

error: no matching package named tauri-plugin-sql found ,你的包不是下过吗

shiyutim avatar Jul 14 '23 13:07 shiyutim

对,很奇怪,之前build成功了,也没更新啥,再build就不行了 QAQ

lvgj-stack avatar Jul 14 '23 13:07 lvgj-stack

我是获取包的时候总是失败,依赖都下不下来。error Command failed. Exit code: 128 Command: git Arguments: ls-remote --tags --heads ssh://[email protected]/tauri-apps/tauri-plugin-sql.git Directory: D:\IE下载\tickets-0.4.2\tickets-0.4.2 Output: Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. 研究了半天了,挂不挂梯子都这个报错。

thexiez avatar Apr 16 '24 12:04 thexiez