Amplify-js: Error: rxjs/Subject"' has no exported member 'Subject'

Created on 14 Nov 2018  路  4Comments  路  Source: aws-amplify/amplify-js

Describe the bug
"aws-amplify-angular": "^2.0.13" has a bug in src/providers/auth.decorator.ts
import { Subject } from 'rxjs/Subject';
should be
import { Subject } from 'rxjs';

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.

Angular bug

Most helpful comment

@haverchuck

  • In 1.1.25 [OK, fixed]

import { Subject, Observable } from 'rxjs';

  • In >1.1.26 [bug strikes again !]

import { Subject } from 'rxjs/Subject';

All 4 comments

@chenji28 A fix for this has been merged into our @unstable tag in npm, and should be available in our main build in a while.

@haverchuck

  • In 1.1.25 [OK, fixed]

import { Subject, Observable } from 'rxjs';

  • In >1.1.26 [bug strikes again !]

import { Subject } from 'rxjs/Subject';

Actually it appears to be aws-amplify-angular 3.0.1. aws-amplify-angular 2.1.12 with aws-amplify 1.1.26 does not show this error.

It appears that this error was reintroduced in commit: 86310899b68a537f050e14da68d3649ce7476cfb.

Was this page helpful?
0 / 5 - 0 ratings