飞镖:在 Windows 上构建时"Invalid argument(s): Illegal character in path"



我的index.html文件中的违规行读取

<script src="main.dart" type="application/dart"></script>

错误报告为:

Build error:
Transform polymer (PolymerBootstrapTransformer) on myproj_frontend|web/index.html threw error: Invalid argument(s): Illegal character in path
dart:core/uri.dart 855                               Uri._checkWindowsPathReservedCharacters
dart:core/uri.dart 956                               Uri._makeWindowsFileUrl

项目的整个路径是

D:ProjectsMyProjMyProj_Project

我在Windows7上使用Dart VM版本1.16.0 从命令行构建

老实说,我不知道如何继续诊断或修复这个问题如有任何帮助,我们将不胜感激。

我也有同样的问题。看起来是analyzer程序包0.27.0及更高版本的问题。

我通过将pubspec.yaml中的版本固定到<0.27.0来解决此问题。

我发现分析器0.27.2可以,但分析器0.27.3会在我的Win 10上引发异常"无效参数:路径中的非法字符"。

ps。我使用Dart 1.16.0

最新更新