I have a flutter web application (created with flutter build web
) and when I run it, I get the following stack trace. Is there a way to convert this stacktrace to the original lines in the dart files? I noticed there is a main.dart.js.map but I'm not sure this is helpful here.
I run my application with
runZonedGuarded(() async {
WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (FlutterErrorDetails errorDetails) {
debugPrint("Flutter error 1 ${errorDetails.exception.toString()}/${errorDetails.stack}");
};
runApp(MyApp());
}, (error, stackTrace) {
debugPrint("Flutter error 2 ${error.toString()}/$stackTrace");
});
and I see the following exception.
Flutter error 2 Null check operator used on a null value/TypeError: Cannot read properties of null (reading 'fb')
main.dart.js:45362 at aqp.J (https://.../main.dart.js:122481:8)
main.dart.js:45362 at bk2.$1 (https://.../main.dart.js:75144:3)
main.dart.js:45362 at Object.bpJ (https://.../main.dart.js:7334:19)
...