如何在Angular 4应用程序和SystemJs模块系统中使用ngx facebook
我已经尝试过在SystemJS中指定路径以加载ngx facebook包的许多变体 System.config({ } });如何在Angular 4应用程序和SystemJs模块系统中使用ngx facebook,facebook,angular,Facebook,Angular,我已经尝试过在SystemJS中指定路径以加载ngx facebook包的许多变体 System.config({ } }); 我正在获取未定义的Facebook服务。谁能帮我一下吗 你能发布错误和代码片段吗?你能发布错误和代码片段吗? "defaultJSExtensions": true, "paths": { '@angular/core': 'node_modules/@angular/core/bundles/core.umd.js', '@angular/common': '
我正在获取未定义的Facebook服务。谁能帮我一下吗 你能发布错误和代码片段吗?你能发布错误和代码片段吗?
"defaultJSExtensions": true,
"paths": {
'@angular/core': 'node_modules/@angular/core/bundles/core.umd.js',
'@angular/common': 'node_modules/@angular/common/bundles/common.umd.js',
'@angular/compiler': 'node_modules/@angular/compiler/bundles/compiler.umd.js',
...
"*": "node_modules/*",
"ngx-bootstrap": "node_modules/ngx-bootstrap",
'ngx-facebook':'node_modules/ngx-facebook',
},
"packages": {
'ngx-facebook': {
defaultExtension: 'js',
main: 'dist/umd/index.js'
},