Rxdart: [error] The method 'retype' isn't defined for the class 'Stream<T>'

Created on 17 Jun 2018  路  2Comments  路  Source: ReactiveX/rxdart

The deprecated retype method was removed as of Dart 2.0.0-dev.62.0 released June 13. Running tests in Chrome using pub run build_runner test -- -p chrome now fail at runtime with

Error compiling dartdevc module:rxdart|lib/futures.ddc.js

[error] The method 'retype' isn't defined for the class 'Stream<T>'. (package:rxdart/src/observable.dart, line 1909, col 33)

If you're not ready to remove the retype method from rxdart then maybe your implementation of retype can be explicitly call cast.

Most helpful comment

Thanks for the report! I've published 0.18.0 which removes this method :)

All 2 comments

Thanks for the report! I've published 0.18.0 which removes this method :)

Upgrading to 0.18.0 worked. Thank you.

Was this page helpful?
0 / 5 - 0 ratings