In this angular2 plunkr, I am trying to import two.js (third party lib) and bootstrap it into my application. Using system.config.js, I added the following lines among the mappings and packages vars :
var map = {
...othermappings
'two.js' : 'https://npmcdn.com/two.js@0.6.0/src'
};
var packages = {
...otherpackages
'two.js': { main: 'two.js', defaultExtension: 'js' },
}
Inside main.ts, If I uncomment the following line:
import {Two} from 'two.js';
and also added :
bootstrap(AppComponent, [
...others,
//Two
])
I get the follwoing error:
(index):20 Error: TypeError: Cannot read property 'isFunction' of undefined(…)