I want to build a web application bundle for my flutter project by using the command 'flutter build web'. However, I face an error i.e.
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead. Error: Cannot run with sound null safety, because the following dependencies don't support null safety:
I can run the app in debug mode but can't build the web bundle.