0

I have an angular2 and play app from here. Everything works fine when I run it in dev mode with sbt run. However I would like to test the production, so I do sbt dist, load the app and get the following errors in console.

http://localhost:9000/assets/lib/rxjs/rx.js Failed to load resource: the server responded with a status of 404 (Not Found) zone.min.js:1 Error: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:9000/assets/lib/rxjs/rx.js(…)e.invoke @ zone.min.js:1

However when I click on the link I see that a file has been loaded.

Here is the code for system js configuration I am using. Does anyone hava an idea on how to fix this?

carpenter
  • 251
  • 2
  • 11

1 Answers1

0

The problem was deprecated imports.

change

import { Observable } from "rxjs/rx"

to

import { Observable } from "rxjs/Observable"

in ts source files.

carpenter
  • 251
  • 2
  • 11