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 introduces the following motion.dart library; what is the problem?

I'm having trouble getting the Dart editor to find the files that are part of the libraries, and the libraries themselves. Does anyone know where to find detailed information on this topic?

Thanks!

+4
source share
2 answers

Please note that this error may occur if the " part of the file is loaded instead of the library ."

For example, from a tag <script>in a user 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-->
+4
source

I had a similar problem and this turned out to be a file encoding problem.

0

Source: https://habr.com/ru/post/1525789/


All Articles