Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error on flutter pub run build_runner build --delete-conflicting-outputs #3550

Closed
vadimlukutin opened this issue Aug 5, 2023 · 4 comments
Labels
needs-info Additional information needed from the issue author

Comments

@vadimlukutin
Copy link

vadimlukutin commented Aug 5, 2023

Null check operator used on a null value
#0 PackageGraph.forPath. (package:build_runner_core/src/package_graph/package_graph.dart:110:72)
#1 MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#2 ListIterator.moveNext (dart:_internal/iterable.dart:344:26)
#3 List.addAll (dart:core-patch/growable_array.dart:325:17)
#4 PackageGraph.forPath (package:build_runner_core/src/package_graph/package_graph.dart:110:12)

#5 main (file:///home/un/.pub-cache/hosted/pub.dev/build_runner-2.4.6/bin/build_runner.dart:27:30)

@vadimlukutin
Copy link
Author

helped run command

flutter gen-l10n

@jakemac53
Copy link
Contributor

Can you try running a flutter pub get and then re-running the same command? I think your package config and pubspec might be out of sync.

@jakemac53 jakemac53 added the needs-info Additional information needed from the issue author label Aug 7, 2023
@github-actions
Copy link

Without additional information we're not able to resolve this issue. Feel free to add more info or respond to any questions above and we can reopen the case. Thanks for your contribution!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@tayadepritam0
Copy link

hello my friend

try adding packages first
json_annotation
json_serializable
build_runner

click on pub get
then open terminal and run command
flutter pub run build_runner build --delete-conflicting-outputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Additional information needed from the issue author
Projects
None yet
Development

No branches or pull requests

3 participants