jvandemo / jvandemo/generator-angular2-library

Playground encounters 404 errors for rxjs

Open
#244 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Hi,

I need some helps here to get my library project running using the playground. Appreciate any pieces of advice.

I can successfully compile the library to dist folder.
When I run `npm lite`, I get this error in browser console window:
![image](https://user-images.githubusercontent.com/15058152/33751181-287c0e0a-dc14-11e7-8c40-284a1842779b.png)
There is also an 404 error in the `lite-server`:
![image](https://user-images.githubusercontent.com/15058152/33751199-4f8b221a-dc14-11e7-8626-f15eb9f9f393.png)

Below is my `systemjs.config.js`:
```
'use strict';
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function () {
System.config({
paths: {
// paths serve as alias
'npm:': '../node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
app: 'app',

// angular bundles
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',

// other libraries
rxjs: 'npm:rxjs',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
'ng-lib-test': '../dist'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
defaultExtension: 'js',
meta: {
'./*.js': {
loader: 'systemjs-angular-loader.js'
}
}
},
rxjs: {
defaultExtension: 'js'
},
'ng-lib-test': {
main: 'ng-lib-test.umd.js',
defaultExtension: 'js'
}
}
});
})(this);

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.