If you try to compile a dart app to an exe and one of the packages includes a build hook you get the error:
'dart compile' does not support build hooks, use 'dart build' instead.
The problem is that here is no easy way to determine what package is importing the build hook.
My recent experience was:
upgraded to sqflite_common_ffi 2.4.0 which includes a build hook for the sqlite3 binaries.
I need to cross compile to arm but the dart build command doesn't support cross compilation.
So I reverted to sqlflite_common_ffi 2.3.6 which according to the change log doesn't use build hooks.
I deleted the pubspec.lock file did a pub get and confirmed that 2.3.6 was in use.
Ran the dart compile command and received the same 'build hooks not supported' error which I assume means one of the other packages I'm using, uses build hooks - but which one?
If you try to compile a dart app to an exe and one of the packages includes a build hook you get the error:
'dart compile' does not support build hooks, use 'dart build' instead.
The problem is that here is no easy way to determine what package is importing the build hook.
My recent experience was:
upgraded to sqflite_common_ffi 2.4.0 which includes a build hook for the sqlite3 binaries.
I need to cross compile to arm but the dart build command doesn't support cross compilation.
So I reverted to sqlflite_common_ffi 2.3.6 which according to the change log doesn't use build hooks.
I deleted the pubspec.lock file did a pub get and confirmed that 2.3.6 was in use.
Ran the dart compile command and received the same 'build hooks not supported' error which I assume means one of the other packages I'm using, uses build hooks - but which one?