Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L10-end not working #3

Open
macimovic opened this issue Dec 19, 2021 · 1 comment
Open

L10-end not working #3

macimovic opened this issue Dec 19, 2021 · 1 comment

Comments

@macimovic
Copy link

macimovic commented Dec 19, 2021

Hi, I am getting the following error inside the console when clicking on Events in navigation.

function beforeRouteEnter(routeTo, routeFrom, next) {
    nprogress__WEBPACK_IMPORTED_MODULE_3___default.a.start();
    _services_EventService_js__WEBPACK_IMPORTED_MODULE_2__["default"].getEvents(2, parseInt(routeTo.query.page) || 1).then(function (response) {
      console.log("inside then response handling");
      next(function (comp) {
        comp.events = response.data;
        comp.totalEvents = response.headers['x-total-count'];
      });
    }).catch(function () {
      next({
        name: 'NetworkError'
      });
    }).finally(function () {
      nprogress__WEBPACK_IMPORTED_MODULE_3___default.a.done();
    });
  }```
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.
@macimovic
Copy link
Author

Might worth mentioning to anyone having a similar issue.

inside of package.json after changing inside of "dependencies"

"vue-router": "^4.0.4" to
"vue-router": "^4.0.0"
and running npm install again
I got the example to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant