跳到主要內容

uri_does_not_exist

URI 目標不存在:'{0}'。

描述

#

當找到 import、export 或 part 指令且其 URI 引用了不存在的檔案時,分析器會生成此診斷。

示例

#

如果檔案 lib.dart 不存在,以下程式碼會生成此診斷

dart
import 'lib.dart';

常見解決方法

#

如果 URI 輸入錯誤或無效,則更正 URI。

如果 URI 正確,則建立該檔案。