Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Angular Error: Module node_modules/rxjs/BehaviorSubject has no exported member 'BehaviorSubject'.ts(2305)

22.01.2021 (👁349)

Angular Error: Module '"../../../node_modules/rxjs/BehaviorSubject"' has no exported member 'BehaviorSubject'.ts(2305)

 

 

Fehler bei:

import { BehaviorSubject } from "rxjs/BehaviorSubject";

 

 

Lösung:

import { BehaviorSubject } from "rxjs/internal/BehaviorSubject";

 

Oder

import { BehaviorSubject } from "rxjs";

 

 AND stop ng serve with ctrl+c and clean the npm serve cache in powershell Terminal and start it again

Ctrl+c

npm cache clean –force

ng serve

 

import { Injectable } from '@angular/core';

import { HttpClient } from "@angular/common/http";

import { BehaviorSubject } from "rxjs/BehaviorSubject";