Flutter for Webで突然main.ddc.dill作成エラーが起きてビルドできなくなった
現象
flutter run -d chrome
実行時、見たことのない怖いエラーが突然発生するように...。
Error creating <project_name>|lib/main.ddc.dill Error creating kernel summary for module:<project_name>|lib/main.ddc.dill
解決
PCを再起動したあと普通に flutter run -d chrome
を実行すると、以下の情報を吐きながらビルドに成功した。
$ flutter run -d chrome Launching lib/main.dart on Chrome in debug mode... Throwing away cached asset graph because the build phases have changed. This most commonly would happen as a result of adding a new dependency or updating your dependencies. Building application for the web...