workspace_field_not_list
Details about the 'workspace_field_not_list' diagnostic produced by the Dart analyzer.
The value of the 'workspace' field is required to be a list of relative file paths.
Description
#
The analyzer produces this diagnostic when the value of the workspace key
isn't a list.
Example
#
The following code produces this diagnostic because the value of the
workspace key is a string when a list is expected:
yaml
name: example
workspace: notPaths
Common fixes
#Change the value of the workspace field so that it's a list:
yaml
name: example
workspace:
- pkg/package_1
- pkg/package_2
Was this page's content helpful?
除非另有说明,文档之所提及适用于 Dart 3.10.3 版本报告页面问题.