簡體   English   中英

Tauri 空白屏幕運行 npm 開發與 Nuxt 3

[英]Tauri blank screen running npm dev with Nuxt 3

嘗試在開發模式下運行 tauti 應用程序時顯示錯誤。

我正在使用 nuxt 3 作為前端應用程序的一部分。

嘗試運行構建命令時顯示相同的錯誤,並且未創建 package

在此處輸入圖像描述

nuxt 配置

import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
  ssr: false,

  modules: [
    '@vueuse/nuxt',
    '@unocss/nuxt',
    '@pinia/nuxt',
    '@nuxtjs/color-mode',
  ],
  experimental: {
    reactivityTransform: true,
    viteNode: false,
  },
  unocss: {
    preflight: true,
  },
  colorMode: {
    classSuffix: '',
  },
})

信息

Environment
  › OS: Windows 10.0.22000 X64
  › Webview2: 103.0.1264.71
  › MSVC: 
  › Node.js: 16.15.0
  › npm: 8.11.0
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.62.1
  › cargo: 1.62.1
  › Rust toolchain: stable-x86_64-pc-windows-msvc 

Packages
  › @tauri-apps/cli [NPM]: 1.0.5
  › @tauri-apps/api [NPM]: 1.0.2
  › tauri [RUST]: 1.0.0-rc.9,
  › tauri-build [RUST]: 1.0.0-rc.8,
  › tao [RUST]: 0.8.4,
  › wry [RUST]: 0.16.0,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../.output/public
  › devPath: http://localhost:3000/
  › framework: Vue.js (Nuxt)
  › bundler: Webpack

App directory structure
  ├─ .idea
  ├─ .nuxt
  ├─ .vscode
  ├─ components
  ├─ composables
  ├─ layouts
  ├─ node_modules
  ├─ pages
  ├─ public
  ├─ server
  └─ src-tauri

解決。

通過 Amr 在 Discord 上。

您可以嘗試升級您的 rust 依賴項嗎? 它們在 src-tauri/Cargo.toml 中是過時的 tauri 和 tauri-build 然后在 src-tauri 中運行 cargo update 你可以在這里找到最新的版本號https://github.com/tauri-apps/tauri#current-releases btw

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM