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

115
Views
Identifier 'DoubleCenterException' has already been declared - Angular

I have a custom JS file in my Angular project. I have included it under scripts in angular.json

! function(r) {
    "use strict";
    var a = {
        init: () => {
            a.stickyHeader()
        },
        stickyHeader: () => {
            r(".navbar").length && new Headhesive(".navbar", {
                offset: 350,
                offsetSide: "top",
                classes: {
                    clone: "banner--clone fixed ",
                    stick: "banner--stick",
                    unstick: "banner--unstick"
                },
                onStick: function() {
                    r(r.SmartMenus.Bootstrap.init), r(".navbar:not(.fixed) .language-select .dropdown-menu").removeClass("show")
                },
                AonUnstick: function() {
                    r(".navbar.fixed .language-select .dropdown-menu").removeClass("show")
                }
            })
        },
    };
    a.init()
}(jQuery);

But when the angular app reloads, i get an error:

Uncaught SyntaxError: Identifier 'DoubleCenterException' has already been declared src\assets\site\js\theme.js:1

What could be the problem at line 1?

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!