i have generated fountainjs angular2 project , write code. using systemjs jspm , typescript. seems work, when want build project dist, gulp-task 'systemjs' throws me error 'error: globalname option must set full-tree rollup global , umd builds.', wonder can cause error. tried many things, not able find out reason. had similar issue , knows solution?
i found issue , solution error.
the main cause line:
import {bootstrapmodalmodule} "angular2-modal/plugins/bootstrap";
i didn't noticed in docs of angular2-modal have add additional configs systemjs.config file:
inside packages section:
'angular2-modal': { defaultextension: 'js' main: 'bundles/angular2-modal.umd' }, 'angular2-modal/plugins/bootstrap': { defaultextension: 'js', main: `bundles/angular2-modal.bootstrap.umd` }
inside map section:
'angular2-modal/plugins/bootstrap': 'npm:angular2-modal@2.0.3/bundles/angular2-modal.bootstrap.umd'
Comments
Post a Comment