• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

157
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 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda