like this: Uncaught TypeError: Cannot set property 'Bloodhound' of undefined

review the code of typeahead.hundle.js , I found "this" is undefined

change "this" to “window”, it works.

You can add Provider in webpack config plugins
new webpack.ProvidePlugin({
jQuery: 'jquery',
$: 'jquery',
"window.jQuery": "jquery"
}),
in source code
import typeahead from "typeahead.js";
import Bloodhound from "bloodhound-js";
@tamanhquyen Thanks! I will try.
already have jquery as a provided plugin through webpack.
still can't get past Cannot set property 'Bloodhound' of undefined
@thatONEjustin : Can you share your sourcecode ?
@thatONEjustin I fixed it by adding the bloodhound.js package and using that instead of the one that comes with typeahead. I think that's what @tamanhquyen was suggesting
Most helpful comment
@thatONEjustin I fixed it by adding the bloodhound.js package and using that instead of the one that comes with typeahead. I think that's what @tamanhquyen was suggesting