Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!