FIX: đã sửa bổ sung tauri
This commit is contained in:
@@ -2996,3 +2996,9 @@
|
||||
- **FIX (build_windows.bat bước 4):** in từng bước (npm OK → kiem tra babel → chay Babel) + MỌI điểm fail có `echo FAIL: ... + pause` (không exit im).
|
||||
- **Các file ảnh hưởng:** build_windows.bat, wiki.md.
|
||||
- **Ghi chú/Test:** chạy lại — nếu Babel fail sẽ THẤY lỗi thật (thường: node_modules thiếu @babel/cli hoặc lỗi syntax source). WORKAROUND: nếu chỉ env (không phải syntax) — bản `app.precompiled.js` hiện có vẫn dùng được (đã build sẵn) — có thể comment dòng babel trong script.
|
||||
|
||||
### [2026-08-08 09:10] Task: FIX tauri build — thiếu `use tauri::Manager`
|
||||
- **Lỗi Rust:** `no method named 'manage' found for &mut tauri::App` + `no method named 'state'` — trait `Manager` (cung cấp manage/state) chưa được import.
|
||||
- **FIX (src-tauri/src/lib.rs):** thêm `use tauri::Manager;`.
|
||||
- **Các file ảnh hưởng:** src-tauri/src/lib.rs, wiki.md.
|
||||
- **Ghi chú/Test:** chạy lại `npx tauri build` — compile tiếp (lỗi khác nếu có — thường là linker MSVC nếu thiếu VS Build Tools).
|
||||
|
||||
Reference in New Issue
Block a user