question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yarn tauri:build checks wrong dist dir for legacy-assets-index.html.json

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
RtthLvrcommented, Apr 19, 2022

add outputDir: 'src-tauri/target/webpack_dist' to your vue.config.js would be worked

0reactions
jerryzhangjqcommented, Apr 2, 2022

I also encountered this issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found