question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Plunkr template suggested in the github New Issue boilerplate does not work with RxJS

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior The Plunkr template suggested in the github New Issue boilerplate does not work out of the box with RxJS. It fails to load RxJS with a bunch of 404s. Seems that SystemJS in not configured properly?

Expected behavior It should work out of the box.

Minimal reproduction of the problem with instructions

  • go to http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5 (the suggested Plunkr template from the current boilerplate)
  • in app.ts add import {Observable} from 'rxjs' at the top and const s = Observable.of(null); in the component constructor
  • open the network tab and run it
  • observe as it crashes and burns, eg: GET https://unpkg.com/ReplaySubject 404 ()

Here: http://plnkr.co/edit/LEwg50TI90K4idOc0ei4

Please tell us about your environment: Latest Chrome on latest MacOS

  • Angular version: 4.0.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ericmartinezrcommented, Apr 20, 2017

In addition to @Toxicable 's suggestion, you can simplify it (just when working with plnkrs, in your app you always want to import only the operators you need) by importing the whole Observable thing import {Observable} from 'rxjs/Rx'

1reaction
Toxicablecommented, Apr 20, 2017

to use Observable.of you have to import like

import {Observable} from 'rxjs/Observable'
import 'rxjs/add/observable/of'

just like in any normal app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plunker and new issue template #62 - ngrx/platform - GitHub
There should be an issue template for new issues (as in https://github.com/angular/material2/issues/new, or in issue #61).
Read more >
webtraining-zone/rxjs-boilerplate - GitHub
If you want to start building RxJS-based applications in a Webpack environment, then this boilerplate is for you. Version. 1.0.0. This version uses...
Read more >
Issues · h5bp/html5-boilerplate - GitHub
A professional front-end template for building fast, robust, and adaptable web apps or sites. - Issues · h5bp/html5-boilerplate.
Read more >
rxjs-boilerplate · GitHub Topics
Add a description, image, and links to the rxjs-boilerplate topic page so that developers can more easily learn about it. Curate this topic...
Read more >
Boilerplate and Starter for Next.js 13+, Tailwind CSS ... - GitHub
Boilerplate and Starter for Next.js 13+, Tailwind CSS 3.2 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found