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

196
Vistas
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 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