Typeahead.js: typeahead is not function errors when using jquery 3.x

Created on 3 Jan 2018  路  3Comments  路  Source: twitter/typeahead.js

Most helpful comment

Finally figured it out !
It's not jquery 3x ... it's jquery 3x slim.

All 3 comments

In my case is =>
Uncaught TypeError: this.transport is not a function
at Prefetch.fromNetwork (typeahead.bundle.js:596)
at Bloodhound.loadPrefetch [as _loadPrefetch] (typeahead.bundle.js:844)
at Bloodhound.initialize [as _initialize] (typeahead.bundle.js:859)
at Bloodhound.initialize (typeahead.bundle.js:866)
at new Bloodhound (typeahead.bundle.js:817)

Finally figured it out !
It's not jquery 3x ... it's jquery 3x slim.

@viktor-rachuk Apparently this repository is not maintained anymore.

I switched to fork: https://github.com/corejavascript/typeahead.js

Works fine. No code changes are required after updating jQuery to 3.* except:

require("corejs-typeahead");
Was this page helpful?
0 / 5 - 0 ratings

Related issues

steswinbank picture steswinbank  路  5Comments

jimmynotjim picture jimmynotjim  路  8Comments

GreatPotato picture GreatPotato  路  8Comments

GiovanniMounir picture GiovanniMounir  路  5Comments

DevChive picture DevChive  路  5Comments