These are chat archives for systemjs/systemjs

24th
Jan 2016
Mohsen Azimi
@mohsen1
Jan 24 2016 00:30
Hi there,
I'm trying to make SystemJS work with my Angular 2 app
Here is my config:
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
    <script src="node_modules/systemjs/dist/system.src.js"></script>
    <script src="node_modules/rxjs/bundles/Rx.js"></script>
    <script src="node_modules/angular2/bundles/angular2.dev.js"></script>

    <!-- Configure SystemJS -->
    <script>
      System.config({
        packages: {
          app: {
            format: 'register',
            defaultExtension: 'js'
          }
        },
        map: {
          firebase: 'node_modules/firebase/lib/firebase-web.js',
          moment: 'node_modules/moment/moment.js',
          marked: 'node_modules/marked/marked.min.js',
          lodash: 'node_modules/lodash/index.js'
        }
      });
      System.import('app/boot')
            .then(null, console.error.bind(console));
    </script>
I'm using TypeScript
importing new libs that I've added like lodash was easy. I needed to update the TSD file to have a default export so I can import like this: import moment from 'moment'
But importing rxjs which came with Angular 2 example which I started my app with is not working
I got a 404 error when I write import statement like this:
import {Observable} from 'rxjs'
Tyler J Presley
@TylerJPresley
Jan 24 2016 06:13
Anyone using Stripe?