GiancarloCode / form_bloc

🔥 Dart and Flutter Package 🔥 Easy Form State Management using BLoC pattern 🔥 Wizard/stepper forms, asynchronous validation, dynamic and conditional fields, submission progress, serialization and more! 🔥
https://GiancarloCode.github.io/form_bloc/
463 stars 199 forks source link

Could not compile the project under web #344

Open bambinoua opened 8 months ago

bambinoua commented 8 months ago

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,
            ^
vasilich6107 commented 3 months ago

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