最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

apk - Tauri v2 - "Cannot find module" error (in Fedora Linux) - Stack Overflow

programmeradmin0浏览0评论

Me making a tauri-app like Tauri's guide. I run tauri android init then ok, but it happens that after running npm run tauri android build --apk, I receive an error:

Error: Cannot find module '/home/My-user/My-folder/tauri-app/src-tauri/tauri'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

But if the Tauri guide do not generate a Tauri module in src, then would it really need to exist? Because I previously compiled it for APK and until then I didn't need it.

My variables be ok.

  • OS: Fedora@latest
  • Java 17

I need compile de tauri-app to APK. I try npm run tauri android build --apk, but I receive an error.

发布评论

评论列表(0)

  1. 暂无评论