We are executing "flutter packages pub run build_runner watch --delete-conflicting-outputs" but it throws a "Invalid argument(s): name shouldn't end with a '.'" error. It was working fine until we upgrade flutter version from 3.3.10 to 3.7.0. The file which throws that exception is "logger.dart"
Asked
Active
Viewed 1,342 times
2
-
Please, provide more context and the code of `logger.dart`. Here is [how to create a minimal, complete, verifiable example](http://stackoverflow.com/help/mcve). – mkobuolys Jan 30 '23 at 11:15
-
Please provide enough code so others can better understand or reproduce the problem. – Community Jan 30 '23 at 21:22
-
how did you solve this? – Guvanch Feb 01 '23 at 10:24
4 Answers
6
change your loggin version to "1.1.0" from your pubspec.lock file. then run flutter pub get command
logging:
dependency: transitive
description:
name: logging
sha256: c0bbfe94d46aedf9b8b3e695cf3bd48c8e14b35e3b2c639e0aa7755d589ba946
url: "https://pub.dev"
source: hosted
version: "1.1.0"

Halil Bulent Orhon
- 89
- 8
-
1
-
-
-
Sure it might work but it's a workaround, it's not actually solving the issue – Sébastien B Aug 31 '23 at 16:28
4
Maybe you made the same mistake like me.
My error came from using two dots side by side in the file.
For example
shared_preference_helper..dart
change to
shared_preference_helper.dart

Muhammet
- 320
- 1
- 10
2
The issue was because if any file you created has two dot "..
" in my case i had created cart_item..dart
file.
If you are on vscode Cntr +Shift + F
and search in vs code for ..dart
and rename to .dart
it will solve your issue

Prawesh Panthi
- 110
- 4