We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap-3-typeahead
Currently have bootstrap-3-typeahead and jquery installed via npm:
jquery
npm i --save bootstrap bootstrap-3-typeahead jquery
Then import bootstrap-3-typeahead` in my main.js file:
import 'bootstrap'; import 'bootstrap/js/tooltip'; import 'bootstrap-3-typeahead';
Then in my webpack.config.js I have the following as bootstrap js requires jquery:
webpack.config.js
new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', jquery: 'jquery', }),
However, I still get the following when trying to load my application:
bootstrap3-typeahead.js:29 Uncaught Error: Cannot find module 'jquery' at webpackMissingModule (bootstrap3-typeahead.js:29) ...
https://github.com/bassjobsen/Bootstrap-3-Typeahead/blob/master/bootstrap3-typeahead.js#L29
Am I missing something here?
The text was updated successfully, but these errors were encountered:
even with all that I still had to import jquery --after-- importing the plugin
// ref: https://github.com/bassjobsen/Bootstrap-3-Typeahead/ import 'bootstrap-3-typeahead'; import * as $ from 'jquery';
Sorry, something went wrong.
No branches or pull requests
Currently have
bootstrap-3-typeahead
andjquery
installed via npm:Then import bootstrap-3-typeahead` in my main.js file:
Then in my
webpack.config.js
I have the following as bootstrap js requires jquery:However, I still get the following when trying to load my application:
https://github.com/bassjobsen/Bootstrap-3-Typeahead/blob/master/bootstrap3-typeahead.js#L29
Am I missing something here?
The text was updated successfully, but these errors were encountered: