I have tried to use the pubspec in the final project as suggesting in another post on the same issue, but it’s not helpful.
What’s wrong???
There’s no proofread process???
I think this book is going to damage the reputation of flutter since it’s on the official website of flutter.
Please provide correct solution regarding such issue and update the book.
Thank you!
Error message:
[WARNING] ../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-4.4.1/lib/src/writer/database_writer.dart:4:8: Error: Error when reading '../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor-4.6.1+1/lib/src/runtime/executor/stream_queries.dart': No such file or directory
import 'package:moor/src/runtime/executor/stream_queries.dart';
^
../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-4.4.1/lib/src/writer/database_writer.dart:207:17: Error: 'AnyUpdateQuery' isn't a type.
if (this is AnyUpdateQuery) {
^^^^^^^^^^^^^^
../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-4.4.1/lib/src/writer/database_writer.dart:209:24: Error: 'SpecificUpdateQuery' isn't a type.
} else if (this is SpecificUpdateQuery) {
^^^^^^^^^^^^^^^^^^^
../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-4.4.1/lib/src/writer/database_writer.dart:210:29: Error: 'SpecificUpdateQuery' isn't a type.
final query = this as SpecificUpdateQuery;
^^^^^^^^^^^^^^^^^^^
../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-4.4.1/lib/src/writer/database_writer.dart:214:24: Error: 'MultipleUpdateQuery' isn't a type.
} else if (this is MultipleUpdateQuery) {
^^^^^^^^^^^^^^^^^^^
../../../sdks/flutter/.pub-cache/hosted/pub.dartlang.org/moor_generator-4.4.1/lib/src/writer/database_writer.dart:215:32: Error: 'MultipleUpdateQuery' isn't a type.
final queries = (this as MultipleUpdateQuery).queries;
^^^^^^^^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 7.2s
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
Other things I have tried:
flutter clean and re-install package, not working.