form_bloc icon indicating copy to clipboard operation
form_bloc copied to clipboard

Could not compile the project under web

Open bambinoua opened this issue 1 year ago • 1 comments

When I tried to compi;e my project with the package I gor this error:

PS D:\Work\Flutter\beauty_salon_master> flutter build web

Target dart2js failed: ProcessException: Process exited abnormally:
/D:/Programs/flutter_pub-cache/hosted/pub.dev/flutter_form_bloc-0.31.0/lib/src/form_bloc_listener.dart:6:9:
Error: Type 'FormBlocState' can't use itself as a bound.
        FormBlocState extends form_bloc
        ^^^^^^^^^^^^^
/D:/Programs/flutter_pub-cache/hosted/pub.dev/flutter_form_bloc-0.31.0/lib/src/form_bloc_listener.dart:14:9:
Error: Type 'FormBloc' can't use itself as a bound.
        FormBloc extends form_bloc.FormBloc<SuccessResponse, ErrorResponse>,
        ^^^^^^^^
/D:/Programs/flutter_pub-cache/hosted/pub.dev/flutter_form_bloc-0.31.0/lib/src/form_bloc_listener.dart:17:13:
Error: Type argument 'FormBloc' doesn't conform to the bound 'StateStreamable<S>' of the type variable 'B' on 'BlocListener'.
 - 'StateStreamable' is from 'package:bloc/src/bloc.dart' ('/D:/Programs/flutter_pub-cache/hosted/pub.dev/bloc-8.1.2/lib/src/bloc.dart').
    extends BlocListener<FormBloc,
            ^

bambinoua avatar Jan 16 '24 14:01 bambinoua

https://github.com/GiancarloCode/form_bloc/pull/312#issuecomment-1164240179

vasilich6107 avatar Jun 24 '24 21:06 vasilich6107