Weave-MC / Weave-Manager

28 stars 9 forks source link

Context not loading on Linux #13

Open cubewhy opened 5 months ago

cubewhy commented 5 months ago

OS Release

> lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy
> cat /proc/version

Linux version 6.5.0-25-generic (buildd@bos03-amd64-044) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #25~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 20 16:09:15 UTC 2

Startup command

npm run-script run

Log of npm

The cause of the problem that cannot be seen in the log :(

cubewhy@workspace  ~/projects/Weave-Manager > npm run-script run
Debugger attached.

> weave-manager-tauri@0.0.0 run
> tauri dev

Debugger attached.
     Running BeforeDevCommand (`npm run dev`)
Debugger attached.

> weave-manager-tauri@0.0.0 dev
> vite

Debugger attached.

  VITE v4.3.9  ready in 277 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
        Info Watching /home/cubewhy/projects/Weave-Manager/src-tauri for changes...
warning: unused import: `std::collections::HashMap`
 --> src/main.rs:5:5
  |
5 | use std::collections::HashMap;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused imports: `read_dir`, `rename`
  --> src/main.rs:15:21
   |
15 | use std::fs::{File, read_dir, rename};
   |                     ^^^^^^^^  ^^^^^^

warning: `weave-manager` (bin "weave-manager") generated 2 warnings (run `cargo fix --bin "weave-manager"` to apply 2 suggestions)
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

warn - The `purge`/`content` options have changed in Tailwind CSS v3.0.
warn - Update your configuration file to eliminate this warning.
warn - https://tailwindcss.com/docs/upgrade-guide#configure-content-sources

Log of the browser

[Debug] [vite] connecting... (client, line 206)
[Debug] [vite] connected. (client, line 286)

Notes

main.ts is unreachable

please notice the images below

image image image

cubewhy commented 5 months ago

image

The problem is here

image

const app = new App({
  target: document.getElementById('app'),
})