GetDutchie / brick

An intuitive way to work with persistent data in Dart
https://getdutchie.github.io/brick/#/
361 stars 28 forks source link

brick_offline_first_with_supabase_build v0.1.0 from pub.dev throws an exception when starting the build_runner #427

Closed devj3ns closed 2 months ago

devj3ns commented 2 months ago

When running dart run build_runner build with brick_offline_first_with_supabase_build version 0.1.0 from pub.dev, the following exception is thrown:

[WARNING] .dart_tool/build/entrypoint/build.dart:5:8: Error: Error when reading 
'../../../../AppData/Local/Pub/Cache/hosted/pub.dev/brick_offline_first_with_sup
abase_build-0.1.0/lib/builder.dart': The system cannot find the file specified.

import 'package:brick_offline_first_with_supabase_build/builder.dart' as _i3;   
       ^
.dart_tool/build/entrypoint/build.dart:22:10: Error: Undefined name 'offlineFirstAggregateBuilder'.
    [_i3.offlineFirstAggregateBuilder],
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.dart_tool/build/entrypoint/build.dart:35:10: Error: Undefined name 'offlineFirstSchemaBuilder'.
    [_i3.offlineFirstSchemaBuilder],
         ^^^^^^^^^^^^^^^^^^^^^^^^^
.dart_tool/build/entrypoint/build.dart:46:10: Error: Undefined name 'offlineFirstNewMigrationBuilder'.
    [_i3.offlineFirstNewMigrationBuilder],
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.dart_tool/build/entrypoint/build.dart:56:10: Error: Undefined name 'offlineFirstModelDictionaryBuilder'.
    [_i3.offlineFirstModelDictionaryBuilder],
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.dart_tool/build/entrypoint/build.dart:66:10: Error: Undefined name 'offlineFirstAdaptersBuilder'.
    [_i3.offlineFirstAdaptersBuilder],
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 3.5s
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.

When using the version from git and the supabase-integration branch, I don't get this exception.

tshedor commented 2 months ago

Fixed and published in #430