#App stoped working with an unusual CSS error

9 messages · Page 1 of 1 (latest)

inland geode
#

My app was working perfectly fine, but suddenly it starts throwing the following error

Did not parse stylesheet at 'http://localhost:1420/src/styles.css' because non CSS MIME types are not allowed in strict mode.

I tried removing the cache, building the app again, renaming my App.css to styles.csss but still the error persists.

#

App stoped working with an unusual CSS error

umbral tendon
#

can you share the output of the tauri info command?

#

did you update any npm dependencies lately?

inland geode
#
 bun tauri info
$ tauri info

[✔] Environment
    - OS: Debian 13.0.0 x86_64 (X64) (Unknown DE on Unknown Session)
    ✔ webkit2gtk-4.1: 2.48.5
    ✔ rsvg2: 2.60.0
    ✔ rustc: 1.90.0 (1159e78c4 2025-09-14)
    ✔ cargo: 1.90.0 (840b83a10 2025-07-30)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 20.19.5
    - pnpm: 10.18.0
    - npm: 10.8.2
    - bun: 1.2.22

[-] Packages
    - tauri 🦀: 2.8.5, (outdated, latest: 2.9.2)
    - tauri-build 🦀: 2.4.1, (outdated, latest: 2.5.1)
    - wry 🦀: 0.53.4, (outdated, latest: 0.53.5)
    - tao 🦀: 0.34.4, (outdated, latest: 0.34.5)
    - @tauri-apps/api  ⱼₛ: 2.9.0
    - @tauri-apps/cli  ⱼₛ: 2.9.2

[-] Plugins
    - tauri-plugin-fs 🦀: 2.4.2, (outdated, latest: 2.4.4)
    - @tauri-apps/plugin-fs  ⱼₛ: 2.4.4
    - tauri-plugin-opener 🦀: 2.5.0, (outdated, latest: 2.5.2)
    - @tauri-apps/plugin-opener  ⱼₛ: 2.5.2

Error: Found version mismatched Tauri packages. Make sure the NPM package and Rust crate versions are on the same major/minor releases:
tauri (v2.8.5) : @tauri-apps/api (v2.9.0)

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
#

I didnt updated any package

inland geode
#

mentioned styles.css file in my splashscreen file which doesnt exist, due to that it cant parse it

#

but am now stuck into another error