Closed mrsimpson closed 1 year ago
Actually, I get Uncaught ReferenceError: require is not defined at main.b6cfe21a.js:1833:48878
now
The problem is, that require
is a node.js thing. In a browser, it is not defined.
You might use the import()
function to dynamically load files, but this would be async as well and won't help. I think, the only real solution is to use window._paq.push()
Why do you use
require
here? Is it because of the async nature ofimport
? This could also be solved byawait
ing the symbol or just - as documented in vue-matomo - by usingwindow._paq.push(['trackPageView'])