This repository was archived by the owner on Nov 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Nov 9, 2023. It is now read-only.
yarn tauri:build checks wrong dist dir for legacy-assets-index.html.json #45
Copy link
Copy link
Open
Description
Describe the bug
Running yarn tauri:build fails while yarn build works fine. It seems that the build CLI is looking for legacy-assets-index.html.json in normal dist path instead of at src-tauri/target/webpack_dist. The file is present in the latter location.
⠏ Building module bundle for production...node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, open '/home/ascclemens/code/xivchat-cross-platform/dist/legacy-assets-index.html.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/ascclemens/code/xivchat-cross-platform/dist/legacy-assets-index.html.json'
}
To Reproduce
Steps to reproduce the behavior:
- Run
yarn tauri:build
Expected behavior
The build works.
Environment (please complete the following information):
- vue-cli-plugin-tauri version: 1.0.0-beta.6
- other vue plugins used: vue-cli-plugin-svg 0.2.1
- output from
npx tauri info/yarn tauri info:
Operating System - Fedora, version 34 X64
Node.js environment
Node.js - 16.11.0
@tauri-apps/cli - 1.0.0-beta.10
@tauri-apps/api - 1.0.0-beta.8
Global packages
npm - 8.0.0
yarn - 1.22.15
Rust environment
rustc - 1.57.0-nightly
cargo - 1.57.0-nightly
App directory structure
/.git
/src-tauri
/.idea
/node_modules
/nix
/public
/src
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 - Set automatically by Vue CLI plugin
devPath - Set automatically by Vue CLI plugin
framework - Vue.js (Vue CLI)
bundler - Webpack
Metadata
Metadata
Assignees
Labels
No labels