Dart编辑器:预期网址 [英] Dart editor: expected url

查看:130
本文介绍了Dart编辑器:预期网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有此错误:

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

这部分是下一个motion.dart库;
是什么问题?

This part is next motion.dart library; what is the problem ?

我无法获得Dart编辑器查找的库文件,以及库本身。

I have trouble getting the Dart editor find the files that are part of the libraries, and the libraries themselves. Anyone know where to find detailed information about this topic?

推荐答案

任何人都知道在哪里可以找到有关此主题的详细信息?

解决方案

请注意,加载 文件的 部分而不是其库 。

Notice that this error could happen when a "part of file" is loaded instead of its library.

例如,从自定义元素/页面中的< script> 标记:

For example, from a <script> tag in a custom-element/page:

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

这篇关于Dart编辑器:预期网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆