2

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"

4 Answers4

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"
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

0

Yes got the same result. Thank you

Ijas Aslam
  • 61
  • 2
  • 1