-
-
Notifications
You must be signed in to change notification settings - Fork 484
Tooltip is not defined #244
New issue
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
Comments
I was eventually able to resolve this issue. The template my project is based upon includes two different webpack.config.js files (one is for vendor-specific files). I had to put the the entries in my main file, not the vendor file (which already had the aliases for jQuery). I did need to rename exports to exports-loader, like so:
|
For those that run into this issue, I also ran into this problem because I wasn't initialising my tooltips correctly. I was doing componentWillMount() {
$('[data-toggle="tooltip"]').tooltip()
} The correct way is below componentWillMount() {
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
} Silly error, but it may help someone. |
I'm using Vuejs and this is the solution I've got: and this is works fine but is there any reason to use webpack.base.conf.js
in my vue component:
|
Uh oh!
There was an error while loading. Please reload this page.
I am having the "Uncaught ReferenceError: Tooltip is not defined" error previously referenced/resolved here:
#172 (comment)
However, the error message persists despite having added the additional entries to my webpack.ProvidePlugin:
My bootstrap files loader is:
Naturally, this error disappears if I disable the JavaScript-enabled components in my *.bootstraprc file. I am using version 2.0.0-beta.20 of the bootstrap-loader, version 2.2.0 of webpack, 4.0.0-alpha.6, version of bootstrap. I have tried changing "exports" to "exports-loader" within each of the entries in case it was a webpack 2 difference but without effect (also without an error message being generated).
The text was updated successfully, but these errors were encountered: