https://stackoverflow.com/questions/34567939/how-to-fix-the-error-error-bootstrap-tooltips-require-tether-http-github-h/34581332
I'm using Bootstrap V4 and the following error is logged in the console;
I have tried to remove the error by installing Tether but it hasn't worked. I have 'installed' Tether by including the following lines of code;
Have I 'installed' tether correctly? Can anyone help me remove this error? If you wish to view the error on my site, please click here and load your console. | |||||||||||||||||
|
Bootstrap 4 needs Tether, so you need to include
| |||||||||||||||||||||
|

If you are using npm and browserify:
| |||
If you're using Webpack:
webpack.config.js:
| |||||||||
|
Personally I use small subset of Bootstrap functionality and don't need to attach Tether. This should help:
| |||||||||||||||||||||
|
Install tether via npm like below
then add tether to your html above bootstrap like below
| |||||||||
|
You should done my guideline:
| |||
An additional note. If you check uncompressed javascript file, you will find the condition:
So the error message contains the required information.
Uncompressed version: https://rawgit.com/HubSpot/tether/master/src/js/tether.jshttps://rawgit.com/HubSpot/tether/master/dist/css/tether.css | ||||
Using webpack I used this in
It seems like
| |||||||||
|
I was having this issue with requirejs using the newest boostrap 4 build. I ended up just defining:
in my html head tag to fool bootstrap's check. I then added a second require statement just before the require that loads my app, and subsequently, my bootstrap dependency:
Using both of these in tandem and you should have no problem using current bootstrap 4 alpha build. | |||
Works for generator-aspnetcore-spa and bootstrap 4.
| |||||
|
If you want to avoid the error message and you are not using Bootstrap tool tips, you can define window.Tether before loading Bootstrap.
| |||
for webpack I resolved this with (webpack.config.js):
| ||||
For webpack 1 or 2 with Bootstrap 4 you need
| |||
If you are using Brunch, you can add this at the end of your
| |||
UMD/AMD solutionFor those guys, who are doing it through UMD, and compiles, for example via In the module, which requires
This short snippet at the very beginning, actually may be put on any higher level of your application, the most important thing - to invoke it before actual usage of
Attaching of global scope, could be easily removed by search of | ||||
To add to @adilapapaya's answer. For
and then include it in your
| |||
And if using webpack, you will need the expose plugin. In your webpack.config.js, add this loader
| |||
I had the same problem and this is how I solved it. I'm on rails 5.1.0rc1 Make sure to add require jquery and tether inside your application.js file they must be at the very top like this
Just make sure to have tether installed | |||
Method #1: Download from Here and insert it to your projects, or
| |||
If you use require.js AMD loader:
| |||
I recommend following the instructions in the Bootstrap 4 documentation:
| |||
I had the same problem and i solved it by including jquery-3.1.1.min before including any js and it worked like a charm. Hope it helps. | |||