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

191
Views
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
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!