Skip to content

Asset 'index.html' not found error. #3082

@rdwnsjjd

Description

@rdwnsjjd

Hi. I put my Tauri in my main app. I should say my tauri app is a GUI for my main app and it goes in a deployment folder inside my main app. there is a cargo.toml file in my project root that has member item and my deployment folder path is maintained there. as usual, it must be started when run cargo builds on project root and it did, but I got Asset 'index.html' not found; fallback to index.html error. what the wrong?

while I can run it without any error when I execute yarn Tauri dev in the deployment folder itself.

Operating System - Ubuntu, version 20.04 X64

Node.js environment
  Node.js - 14.18.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 8.1.3
  yarn - 1.22.17

Rust environment
  rustc - 1.52.1
  cargo - 1.52.0

App directory structure
/src-tauri
/.vscode
/src
/node_modules
/.git
/public

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../src
  devPath - http://localhost:3000
  framework - React

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions