Hoaken Hs
Hoaken Hs

Reputation: 1

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

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.

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

Upvotes: 0

Views: 35

Answers (0)

Related Questions