RxJSInAction / rxjs-in-action

Code sample repository
133 stars 59 forks source link

Rx.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) #20

Closed NetVarg closed 6 years ago

NetVarg commented 6 years ago

I am new to the angular and rxjs. I get the following runtime error in chrome:

Rx.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

1 Refused to execute script from 'https://unpkg.com/@reactivex/rxjs@6.1.0/dist/global/Rx.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Uncaught ReferenceError: Rx is not defined at wrapper ((index):43) at (index):73 wrapper @ (index):43 (anonymous) @ (index):73

NetVarg commented 6 years ago

I found the error. I changed the cdn url from <script src="https://unpkg.com/@reactivex/rxjs/dist/global/Rx.js"></script> to <script src=" https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>