Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

586
Visualizações
Uncaught ReferenceError: autocomplete is not defined

We currently have some Javascript that used to work, however we recently underwent a system upgrade, and we are doing some regression testing.

Now our script is not recognizing our function anymore:

Uncaught ReferenceError: autocomplete is not defined

However, it seems like the issue is related to how the function is defined, and my JS is unfortunately very basic.

Our declaration is:

<script type="text/javascript">
(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  typeof define === 'function' && define.amd ? define(factory) :
  (global = global || self, global.autocomplete = factory());
}
(this, function () { 'use strict';
/*
     * https://github.com/kraaden/autocomplete
     * Copyright (c) 2016 Denys Krasnoshchok
     * MIT License
     */         
function autocomplete(settings) {

Any assistance or guidance would be greatly appreciated. Thanks in advance.

Edit: Just an additional error received when other JS on the page executes:

Uncaught Error: Mismatched anonymous define() module: function () { 'use strict';

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Turns out the new upgrade uses a different requirejs library.

We reverted to the old library, and our code is now working.

(we will investigate and resolve the code dependency at a later point, so that the new library can be used.)

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda