无法使用带角度种子的新Angular Fire 2更新

时间:2017-08-24 20:27:58

标签: angular firebase systemjs angularfire2 angular-seed

我尝试将AngularFir2 v4.0.0-rc.2下载到angular-seed repo https://github.com/mgechev/angular-seed/

但在运行npm run start-deving error

时出现此错误

以下行是从我认为与错误相关的文件扩展而来的:

karma.conf.js

{ pattern: 'node_modules/firebase/**/*.js', included: false, watched: false },
{ pattern: 'node_modules/angularfire2/bundles/*.umd.js', included: false, watched: false },

project.config.ts

let additionalPackages: ExtendPackages[] = [
  { name: 'firebase', path: 'node_modules/firebase'},
  { name: 'angularfire2', path : 'node_modules/angularfire2/bundles'}
];    
this.addPackagesBundles(additionalPackages);

测试config.js

System.config({
  baseURL: '/base/',
  paths: {
    angular2: 'node_modules/angular2',
    angularfire2 : 'node_modules/angularfire2',
    rxjs: 'node_modules/rxjs',
  },
  packages: {
    '': {
      defaultExtension: 'js'
    },
    rxjs: {
      defaultExtension: 'js'
    }
  }
});

的package.json

"angularfire2": "^4.0.0-rc.2",
"firebase": "^4.3.0",

可能SystemJS并没有从Angular Fire中读取任何内容,因为导入{ AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'时我在vscode中没有出现错误

0 个答案:

没有答案