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

199
Visualizações
Can't reference a module when importing with webpack

I am getting referenceerror's from my browser console when importing Twitter Typeahead.js into Webpacker in my rails project. I added this, import typeaheadBundle from "typeahead.js", to my application.js file (it was autocompleted by vs code and looked right). I can see in the sources panel in my browser that typeahead is included under webpack/typeahead.js/dist/typeahead.bundle.js but I am still getting a reference error for Bloodhound, the bundled search engine. I can see references to other imported modules in the console like Turbolinks, but there is no reference to the Typeahead classes. Is there something else I need to do to make these modules accessible to my script tags or am i importing incorrectly?

about 4 years ago · Juan Pablo Isaza
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