Skip to content

Conversation

@IOLOII
Copy link
Contributor

@IOLOII IOLOII commented Feb 18, 2025

Starting with RxJS 6.x, the Observable.of method has been removed, and it's recommended to directly import the of function from 'rxjs' instead.

Starting with RxJS 6.x, the Observable.of method has been removed, and it's recommended to directly import the of function from 'rxjs' instead.
@IOLOII
Copy link
Contributor Author

IOLOII commented Feb 18, 2025

const { Observable } = require('rxjs');
function observableTask() {
  return Observable.of(1, 2, 3); // TypeError: Observable.of is not a function
}
exports.default = observableTask;

@yocontra yocontra merged commit 1777a9c into gulpjs:master Jun 1, 2025
phated pushed a commit that referenced this pull request Jun 1, 2025
Starting with RxJS 6.x, the Observable.of method has been removed, and it's recommended to directly import the of function from 'rxjs' instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants