Nick van de Goorbergh
Nick van de Goorbergh

Reputation: 11

aurelia error (0, _bootstrap2.default) is not a function

I have an aurelia app for a filmfestival and recently I stumbled upon an error that I don't understand. I have a line of code:

const timetableElement = $('<div>').attr('id', timetableID).addClass('timetable anim-fade-in');

That after compiling it changes to

var timetableElement = (0, _bootstrap2.default)('<div>').attr('id', timetableID).addClass('timetable anim-fade-in');

Which result in the error: (0, _bootstrap2.default) is not a function.

I hope I made myself a bit clear.

(www.suikerzoetfilmfestival.nl/programma)

Upvotes: 0

Views: 34

Answers (1)

Nick van de Goorbergh
Nick van de Goorbergh

Reputation: 11

Solved it by adding declare var $

Upvotes: 1

Related Questions