'For what reason can an error occur periodically in the client-side?

I have a Rails application that has several components written in Vue. All components are included in the "pack" file.

These two errors occur periodically in the browser (Safari):

SyntaxError: Unexpected token '|'

TypeError: Object(i.a) is not a function. (In 'Object(i.a)()', 'Object(i.a)' is an instance of Object)

The first error points to this line:

<meta name="csrf-token" content="qRbwC3xngly9Y5hRVLA86upHTEkVwIk10PiOtDWCw00RUkIhGK8UvEIhtUXebkzWaqlxsHPSBaheR1moaY-b9w"/>

enter image description here

I don't understand what the second line points to. The error refers to some function "c" in "node.js:15".

Clicking on it jumps to the comment:

enter image description here

In general, I do not understand what it is.

If reload the page, then everything will be fine. Well, that is the problem occurs randomly.

On the Sentry side, I get nothing. Apparently, this does not reach Sentry, the error is not caught and is not transmitted to Sentry.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source