Repository: tauri
Issue: [bug] Blank screen on starting tauri application
Labels: type: bug,status: upstream,platform: Linux

### Describe the bug

I create a new taur-app with vue scaffolding, but it does not working properly, it shows blank white screen.
It seems like [https://github.com/tauri-apps/tauri/issues/4638](url)
1. All resources(js svg and html)loaded, but application's body is blank.
  And websocket is fine(with ping message).
  No error/warning message in console.
  All elements exists in the html dom.
![Screenshot from 2022-09-06 16-15-26](https://user-images.githubusercontent.com/26891754/188592667-9a8ba0fa-c572-4d03-9678-e39a2576f231.png)
2. When I drage these elements, It shows below.
![Screenshot from 2022-09-06 16-14-41](https://user-images.githubusercontent.com/26891754/188593401-9d4c7fc0-881a-46c3-aaac-078ccf31bd6a.png)
3. Http server works well.
![Screenshot from 2022-09-06 16-17-04](https://user-images.githubusercontent.com/26891754/188593837-7a8e7c6d-b67d-456d-bcb9-8617e51e5915.png)
4. I tried to run `cargo build ` and `cargo build --release`, but it seems nothing changed.


### Reproduction

1. Install any missing dependencies.
```
sudo apt install libwebkit2gtk-4.0-dev \
    build-essential \
    libgtk-3-dev \
    libayatana-appindicator3-dev \
    librsvg2-dev
```
and I did not run `sudo apt update`
2. Create Tauri app with pnpm create tauri-app, selecting vite+vue scaffolding.
3. In `${MyAppDir}`, run `pnpm run install`;
4. Run `pnpm run tauri dev`


### Expected behavior

Content appears in window.

### Platform and versions

```
pnpm run tauri info
> test@0.0.0 tauri /home/nvidia/yx/test
> tauri "info"


Environment
  › OS: Ubuntu 18.04 X64
  › Node.js: 18.8.0
  › npm: 8.18.0
  › pnpm: 7.11.0
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.63.0
  › cargo: 1.63.0
  › Rust toolchain: stable-aarch64-unknown-linux-gnu

Packages
  › @tauri-apps/cli [NPM]: 1.0.5
  › @tauri-apps/api [NPM]: 1.0.2
  › tauri [RUST]: 1.0.5,
  › tauri-build [RUST]: 1.0.4,
  › tao [RUST]: 0.12.2,
  › wry [RUST]: 0.19.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://127.0.0.1:3000/
  › framework: Vue.js

App directory structure
  ├─ src-tauri
  ├─ dist
  ├─ public
  ├─ node_modules
  ├─ src
  └─ .vscode
```
#### package.json
```
{
  "name": "test",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview",
    "tauri": "tauri"
  },
  "dependencies": {
    "vue": "^3.2.37",
    "@tauri-apps/api": "^1.0.2"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^3.0.1",
    "vite": "^3.0.2",
    "@tauri-apps/cli": "^1.0.5"
  }
}
```

#### tauri.conf.json

```
{
  "build": {
    "beforeDevCommand": "pnpm dev",
    "beforeBuildCommand": "pnpm build",
    "devPath": "http://127.0.0.1:3000",
    "distDir": "../dist",
    "withGlobalTauri": false
  },
  "package": {
    "productName": "test",
    "version": "0.0.0"
  },
  "tauri": {
    "allowlist": {
      "all": true
    },
    "bundle": {
      "active": true,
      "category": "DeveloperTool",
      "copyright": "",
      "deb": {
        "depends": []
      },
      "externalBin": [],
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/128x128@2x.png",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "identifier": "com.tauri.dev",
      "longDescription": "",
      "macOS": {
        "entitlements": null,
        "exceptionDomain": "",
        "frameworks": [],
        "providerShortName": null,
        "signingIdentity": null
      },
      "resources": [],
      "shortDescription": "",
      "targets": "all",
      "windows": {
        "certificateThumbprint": null,
        "digestAlgorithm": "sha256",
        "timestampUrl": ""
      }
    },
    "security": {
      "csp": null
    },
    "updater": {
      "active": false
    },
    "windows": [
      {
        "fullscreen": false,
        "height": 600,
        "resizable": true,
        "title": "test",
        "width": 800
      }
    ]
  }
}
```

### Stack trace

```shell
No error/warning message.
```


### Additional context

_No response_