简体   繁体   English

飞镖编辑:预期网址

[英]Dart editor: expected url

I have this error : 我有这个错误:

  Internal error: 'http://127.0.0.1:3030/Motion/bin/csscode.dart': error: line 2 pos 6: url expected
part of dart.motion;

This part is next motion.dart library; 这部分是下一个motion.dart库; what is the problem ? 问题是什么 ?

I have trouble getting the Dart editor find the files that are part of the libraries, and the libraries themselves. 我无法让Dart编辑器找到属于库的文件和库本身。 Anyone know where to find detailed information about this topic? 有谁知道在哪里可以找到有关此主题的详细信息?

Thanks ! 谢谢 !

Notice that this error could happen when a " part of file" is loaded instead of its library . 请注意,加载“文件的一部分 ”而不是其时,可能会发生此错误。

For example, from a <script> tag in a custom-element/page: 例如,从custom-element / page中的<script>标记:

<script type="application/dart" src="my-part-library.dart"></script><!--won't works-->
<script type="application/dart" src="TheLibrary.dart"></script><!--will works-->

我遇到了类似的问题,结果证明是文件编码问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM