yarn tauri:build checks wrong dist dir for legacy-assets-index.html.json
See original GitHub issueDescribe 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Issues · tauri-apps/vue-cli-plugin-tauri - GitHub
tauri -apps / vue-cli-plugin-tauri Public. Notifications · Fork 22 ... yarn tauri:build checks wrong dist dir for legacy-assets-index.html.json.
Read more >CLI | Tauri Apps
This command will bundle your application, either in production mode or debug mode if you used the --debug flag. It makes use of...
Read more >Building without bundling: How to do more with less
Simple demos already work fine without bundling, but what about building a real, fully featured web app? Can you do that?
Read more >Search Results - CVE
The mission of the CVE® Program is to identify, define, and catalog publicly disclosed cybersecurity vulnerabilities.
Read more >Scoop buckets by Github score
Hsins/yogurt: A sweet Scoop bucket containing JSON app manifests which describe how to ... Qt 5 build still supports legacy Windows like 8.1...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
add
outputDir: 'src-tauri/target/webpack_dist'
to yourvue.config.js
would be worked