Ar Rizque
Ar Rizque

Reputation: 29

How i can fix this issue?? i can't compile my flutter web

How i can fix this ??

flutter build web

Building with sound null safety

Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead. /C:/Users/DELL/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_screenutil-5.3.1/lib/screenutil_init.dart:23:54: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

Compiling lib\main.dart for the Web... 24.2s Exception: Failed to compile application for the Web.

Upvotes: 2

Views: 3640

Answers (1)

Sabirklm
Sabirklm

Reputation: 53

I got this type of issue but it solved for me with

flutter run -d chrome --web-hostname localhost --web-port 5000 Try running this command.

Upvotes: 0

Related Questions