79345577

Date: 2025-01-10 11:44:19
Score: 2.5
Natty:
Report link

There no error in browser console and terminal either? Don't you have any guard on the route you try to enter? This seems to me as a issue with non-existing route that you're trying to reach.

Please show the code how you trigger the function on the button.

Here is very helpful video on VueSchool https://vueschool.io/lessons/router-and-the-composition-api?friend=vuerouter

For forcing error you can try to use this code with added catch.

 const router = useRouter();

 const navigate = (path) => {
      try {
        router.push({ path: path });
      } catch (error) {
        console.error('Navigation error:', error);
      }
    };
Reasons:
  • RegEx Blacklisted phrase (2.5): Please show the code how you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: devzom