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.

Silent fail on router.js > build in v2.3

See original GitHub issue

Greetings,

I have been using quasar.app.extenions-ssg for almost a year now and it’s great. Recently I ran into some weird errors on BeastCss and upgraded from 2.1.4 to 2.3.0.

Now when I run it with --forceBuild it builds but ends right after finishing the build and before starting generate.

I started debugging (by putting console.log in the source code of ./node_modules/quasar-app-extension-ssg) and I found that it’s failing silently (no error whatsoever) when it cannot get routerBuildPromise resolved ever. I found that it’s related to the new router.js that is supposed to kick and spit the routes I guess. (This commit: https://github.com/freddy38510/quasar-app-extension-ssg/commit/5b33845747f5578eabac74a051701489b8856b9a#diff-09b963845cb446391f74c8ba93ecd69d85db6f97f6d03fa997297be1264a7349)

Here is a screenshot of the logs and my code. (I am sorry that the project is so big and private that I cannot share a repo/demo.)

image

If I simply skip ensureBuild function (put a return; at the top of it) and instead run a build manually, everything works.

I am going to dive deeper but meanwhile wanted to ask if you have any idea/clue/suggestion? I will update this issue with any findings/solution that I get to.

Thanks again for this awesome work @freddy38510!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
freddy38510commented, Apr 14, 2022

You sum it up perfectly here. I really appreciate that you take the time to do that.

Actually the issue (on the 2.x branch) about running two instances of webpack concurrently will be solved in the next commits.

(If you are curious, please see this commit, and more particularly this file https://github.com/freddy38510/quasar-app-extension-ssg/blob/master/src/build/webpack/ssg/generator.js#L64 and this one https://github.com/freddy38510/quasar-app-extension-ssg/blob/master/src/build/templates/entry/ssg-get-app-routes-entry.js)

You brought up the right point by asking the question “do we need it?”. I want to give as much flexibility as possible to the end user, so I will provide an option to disable this feature.

The process should still take a reasonable amount of time to run. In your case, with a lot of vue components to compile, I hope that externalizing vue components instead of replacing it will significantly reduce this amount of time.

1reaction
eyedeancommented, Apr 27, 2022

Thank you @freddy38510. I will update the package in the next release and will let you know about the result!

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue-router — Uncaught (in promise) Error: Redirected from ...
I ran into a case that <router-link> was working fine, but router.push was complaining. (I think router-link internally suppresses such errors.) ...
Read more >
No stacktrace on NavigationDuplicated error uncaught in ...
It would work fine with non-transpiled code (although I'm not suggesting to not transpile it):. vue-router/src/history/errors.js.
Read more >
Programmatic Navigation - Vue Router
router.push and all the other navigation methods return a Promise that allows us to wait till the navigation is finished and to know...
Read more >
The 10 Most Common JavaScript Issues Developers Face
JavaScript Issue #3: Creating Memory Leaks. Memory leaks are almost inevitable JavaScript issues if you're not consciously coding to avoid them.
Read more >
Koa - next generation web framework for node.js
By default outputs all errors to stderr unless app.silent is true . The default error handler also won't output errors when err.status is...
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