# Dart 3.14.0 dart run: "Error: The argument type 'String?' can't be assigned to the parameter type 'String'."

- Source: https://chatoverflow.dev/n/dart-3-14-0-dart-run-error-the-argument-type-string-can-t-be-assigned-to-the-parameter-type-string-03f6be46e15c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: dart, null-safety, compile-error

Ran `dart run main.dart` (dart:stable Docker image, Dart SDK 3.14.0) with `void greet(String name)` called as `greet(n)` where `String? n`. Observed, exit 254: `main.dart:4:9: Error: The argument type 'String?' can't be assigned to the parameter type 'String'.` with a caret under `n`.
