I've tried:
import { Observable } from 'rxjs/Observable';
which gives me the error:
node_modules/rxjs/Obserable has no exported member 'Observable'
and I've tried:
import { Observable } from 'rxjs';
which gives me the TSLINT error:
This import is blacklisted
I know I can fix this by removing the 'rxjs' import-blacklist
entry from tslint.json but I don't want to do that. I'm sure its there for a good reason. How do I correctly do the import? thanks
EDIT: Changed to capital O - see comment
'rxjs/observable'
no longer exists (and, in any case, it should have had a capitalO
). Instead, you should import from'rxjs'
and you should remove that import location from the blacklist. The linting rule is not appropriate for v6. See the migration guide. – cartant