Property 'then' does not exist on type Observable code example Example: Property 'of' does not exist on type 'typeof Observable'. import { of } from 'rxjs';