2014-02-07 90 views
4

我有這樣的錯誤:飛鏢編輯:預期網址

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庫; 有什麼問題?

我無法使飛鏢編輯器找到屬於庫的文件以及庫本身。任何人都知道在哪裏可以找到關於此主題的詳細信

謝謝!

+0

[Dart庫中「部分」和「部分」背後的原因是什麼?](http://stackoverflow.com/questions/18403551/whats-the-reasoning-behind-part-and-part -of-在-DART-庫) –

回答

4

注意,當一個「文件的部分」而不是加載其的可能發生這個錯誤。

例如,從<script>標籤在自定義元素/頁:

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

我也有類似的問題,它竟然是用文件編碼的問題。