首页 > 解决方案 > 内置值生成器失败

问题描述

从今天早上开始,构建值 ( pub run build_runner build) 的生成步骤失败了

[SEVERE] built_value_generator:built_value on lib/client.dart (cached):
Unknown error in BuiltValueGenerator for myproject|lib/client.dart.
NoSuchMethodError: The method 'getParsedLibraryByElement' was called on null.
Receiver: null
Tried calling: getParsedLibraryByElement(Instance of 'LibraryElementImpl')

我尝试升级到内置值 6.6.0(从 6.3.2),但没有帮助

Dart 版本是 2.1.0-dev.9.4

欢迎任何建议

标签: dartcode-generationbuilt-value

解决方案


推荐阅读