core: ng2-translate not found
I’ve added ng2-translate to my system.config.js that comes with standard angular2 installation. ng2-translate is not being loaded.
var map = { 'app': 'app', // 'dist', '@angular': 'node_modules/@angular', 'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', 'ng2-translate': 'node_modules/ng2-translate', 'rxjs': 'node_modules/rxjs' };
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 27
Not sure if it changes anything, but try using
paths
and point to thejs
file instead of to thebundles
directory.Maybe changing your
ng2-translate
entry inmap
tonode_modules/ng2-translate/bundles/ng2-translate.umd.js
might be enough. Otherwise, try using this config.@SamVerschueren You, my friend, are a gem. Thank you very much.
@roddydairion it is pretty embarrassing to say that i simply included the wrong systemjs in my index.html as i was working on a test-project. 😃
put ‘ng2-translate’: ‘node_modules/ng2-translate/bundles’ in system.config.js in the map and ‘ng2-translate’ : { defaultExtension: ‘js’ } in packages
working example of system.config.js