Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
Generating file throws error: Unexpected token '&'

In a Nuxt project the files are compiled strangely. This leads to error messages in the console and in my case affects the tracking.

The following Console.log error message comes up: "Uncaught SyntaxError: Unexpected token '&'".

That is the part which occurs the console error:

<script data-n-head="1" data-hid="tealium" type="text/javascript">
        (function(a,b,c,d){a=&#x27;//tags.tiqcdn.com/utag/tr //etc... </script>

I expect: a='//tags.tiqcdn...

The relevant nuxt.config.js part

{
    hid: `tealium
    innerHTML: `
      (function(a,b,c,d){a='//tags.tiqcdn.com/utag/../utag.js';b=document;c='script';d=b. createElement(c);d.src=a;d.type='text/java'+c;d.async=true;a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);})();
    `,

I use to build node v16.14.0 and npm 8.3.1.

What I have already tried: I add nuxt-charset-module https://www.npmjs.com/package/nuxt-charset-module to push the <meta charset> to first of <head>.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda