Search code examples
angularjstwitter-bootstrapangular-ui-bootstraptypeerrortoastr

Uncaught TypeError: X[g].exec is not a function fb tokenize


Since today I am getting an error as follows:

Uncaught TypeError: X[g].exec is not a function fb tokenize

This is the stack trace:

Uncaught TypeError: X[g].exec is not a function fb.tokenize @ jquery.min.js:2 fb.compile @ jquery.min.js:2 fb.select @ jquery.min.js:2 fb @ jquery.min.js:2 m.event.handlers @ jquery.min.js:3 m.event.dispatch @ jquery.min.js:3 r.handle @ jquery.min.js:3

The project is an Angularjs app built in an .NET MVC Area. Dependencies are:

Edit

Seems to be a problem with Bootstrap.js file, where an alert is supposed to be dismissed but not found. JQuery Sizzle can't find "[alert-dismiss]". The fb is Sizzle in minified version of JQuery.


Solution

  • I found the culprit.

    Seems there was a disturbance in the force with the combination of bootstrap.js and the angular bootstrap ui library. After removing the unnecessary bootstrap.js all was well.