Steps to replicate the bug:
- fork/download this repository
- run
npm install - run
gulp --open
You will see a message that says "typeahead IS defined in jQuery.fn". It displays this message if jQuery.fn.typeahead returns a function in the src/_scripts/main.js file.
- Use ctrl+c to stop the command prompt task runner
- open the package.json file in the root folder
- change
"//exports": "global:jQuery"to"exports": "global:jQuery"(equivalent of uncommenting it) - run
gulp --openagain
You will see a message that says "typeahead is NOT defined in jQuery.fn". This of coarse is displayed when jQuery.fn.typeahead returns undefined from the main.js file.