Skip to content

Could not compile the project under web #344

@bambinoua

Description

@bambinoua

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,
            ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions