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.

Build not working for multiple browser windows

See original GitHub issue

I seem to have the same problem as in: #102

Describe the bug When creating an application with more than one window, the build fails with message: Building modern bundle for production...(node:67207) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/.../dist_electron/bundled/legacy-assets-index.html.json'

To Reproduce Clone https://github.com/utoppo/vue-cli-plugin-electron-builder-build-problem Try to build with: yarn electron:build

Expected behavior Build/Bundling Process should finish without error.

Environment:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
nklaymancommented, Mar 5, 2019

I fixed the missing legacy-assets-page.html.json bug with 1.1.1, and created a multipage demo app. Let me know if that works for you or if you have more questions.

1reaction
elyulkacommented, Mar 24, 2019

It doesn’t work in our case! You should replace fileName to filename ! Changing name of option in vue.config.js does not help.

See: https://github.com/nklayman/vue-cli-plugin-electron-builder/commit/bafd557d8b11c2f6de3b600b2cd2fcbc4a6de351#r32880694

Otherwise we get errors and build never finishes:

Building modern bundle for production...(node:35823) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '.../dist_electron/bundled/legacy-assets-main.html.json'
(node:35823) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:35823) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠇  Building modern bundle for production...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Web pages not loading correctly accross different browsers ...
Web pages do not always load properly accross multiple browsers. At first I believed it was only on chrome and edge. Now.
Read more >
Expanding Single Page Apps into multiple Browser Windows
This article covers a disruptive new approach on how we can further improve the rendering performance of web based frontends, since we will ......
Read more >
Multiple window opening problem - Brave Community
Only one window should open. Reproduces how often: Always. Brave Version: Version 1.19.86 Chromium: 88.0.4324.96 (Official Build) (x86_64).
Read more >
Expanding Single Page Apps into multiple Browser Windows
We are just removing a view from a parent view inside one Browser Window and adding it to another view of an App...
Read more >
Open multiple windows / instances? #169 - minbrowser/min
To that end, I'd like to have multiple instances open, so I can test apps with different concurrent browser sessions side-by-side, without having...
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