tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
82.06k stars 2.47k forks source link

[bug] use BUN package manager to create a project report "Error: cannot find module ... ...cli\tauri.js" #10951

Open x-Sheldon opened 1 week ago

x-Sheldon commented 1 week ago

Describe the bug

Same as the title ,additionally use npm can run normally.

Reproduction

No response

Expected behavior

No response

Full tauri info output

f:\tauri\new\BunTtV2>bun tauri info
$ tauri info
node:internal/modules/cjs/loader:1148
  throw err;
  ^

Error: Cannot find module 'F:\F:\tauri\new\BunTtV2\node_modules\@tauri-apps\cli\tauri.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.14.0
error: script "tauri" exited with code 1

Stack trace

No response

Additional context

No response

amrbashir commented 1 day ago

Can you please provide a full reproduction steps? also are you using tauri v1 or v2?