Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground encounters 404 errors for rxjs #244

Open
sishuoyang opened this issue Dec 8, 2017 · 6 comments
Open

Playground encounters 404 errors for rxjs #244

sishuoyang opened this issue Dec 8, 2017 · 6 comments

Comments

@sishuoyang
Copy link

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
There is also an 404 error in the lite-server:
image

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);

@sishuoyang sishuoyang changed the title Playground encounters 404 errors ofr rxjs Playground encounters 404 errors for rxjs Dec 8, 2017
@caroso1222
Copy link
Contributor

Related: #255

@jvandemo
Copy link
Owner

@caroso1222 — Thank you for your follow-up.

@izifortune — Would you be able to have a look a this?

Thanks in advance!

@zgabievi
Copy link
Contributor

Same here:

image

Any updates?

@izifortune
Copy link
Collaborator

Hi @sheldonyss do you have the same problem running npm run playground ? Because npm run lite its meant to be runned only inside the other command not as a standalone

@TeodorKolev
Copy link

Same here

@zxxsinventory
Copy link

Same here. I got 404 at fetch.js at first, then i deleted .playground and got 404 at system.src.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants