Flutter: Command PhaseScriptExecution failed with a nonzero exit code Flutter: Command PhaseScriptExecution failed with a nonzero exit code dart dart

Flutter: Command PhaseScriptExecution failed with a nonzero exit code


The intl package needs to be properly configured to work on Flutter.

When you import it, DON'T use the import 'package:intl/intl_browser.dart';, insead use the follwing (each one has its use so see the docs the one that best suits you):

import 'package:intl/date_symbol_data_local.dart';import 'package:intl/intl.dart';import 'package:intl/intl_standalone.dart';