Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating to Angular2.0.0-rc.1, can't get past this error

App refuses to find symbol-observable - or zone.js does - even though rxjs is definitely in there.

error

Got everything loading like:

<script src="node_modules/es6-shim/es6-shim.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script>
System.config({
  map: {
    '@angular': 'node_modules/@angular',
    'rxjs': 'node_modules/rxjs'
  },
  packages: {
    'dist': { defaultExtension: 'js', format: 'register', main: 'boot.js' },
    '@angular/common': { defaultExtension: 'js', main: 'index.js' },
    '@angular/compiler': { defaultExtension: 'js', main: 'index.js' },
    '@angular/core': { defaultExtension: 'js', main: 'index.js' },
    '@angular/http': { defaultExtension: 'js', main: 'index.js' },
    '@angular/platform-browser': { defaultExtension: 'js', main: 'index.js' },
    '@angular/platform-browser-dynamic': { defaultExtension: 'js', main: 'index.js' },
    '@angular/router': { defaultExtension: 'js', main: 'index.js' },
    'rxjs': { defaultExtension: 'js' }
  }
});
System.import('dist').catch(console.error.bind(console));
</script>

I put all the code up here for a closer look.

like image 328
Ryan Metin Avatar asked May 07 '16 08:05

Ryan Metin


Video Answer


1 Answers

I tried mapping to symbol-observable again. It worked this time. Go figure.

System.config({
  map: {
    ...,
    'symbol-observable': 'node_modules/symbol-observable'
  },
  packages: {
    ...,
    'symbol-observable': { defaultExtension: 'js', main: 'index.js'
  }
});
like image 143
Ryan Metin Avatar answered Nov 04 '22 01:11

Ryan Metin