dart-archive / angular.dart

Legacy source repository. See github.com/dart-lang/angular
https://webdev.dartlang.org/angular/
1.25k stars 248 forks source link

Warning from _Serial on tutorial|web/main.dart with input tutorial|lib/component/* #1603

Open mulander opened 9 years ago

mulander commented 9 years ago

The above warning is raised on all html attached to the component from the updated angular.dart tutorial. The same warning is raised in the Dart Editor.

All of the mentioned html is specified in pubspec.yml

The warnings seem to have no impact on the page itself.

[mulander@koparo Chapter_06]$ pub build
Loading source assets... 
Loading di/module_transformer and smoke/src/default_transformer transformers... (1.3s)
Loading angular transformers... (1.5s)
Building tutorial... (13.0s)
[Warning from _Serial on tutorial|web/main.dart with input tutorial|lib/component/recipe_book.dart]:
line 14, column 1 of package:tutorial/component/recipe_book.dart: Unable to find recipe_book.html at tutorial|recipe_book.html
@Component(
^^^^^^^^^^^
[Warning from _Serial on tutorial|web/main.dart with input tutorial|lib/component/view_recipe.dart]:
line 6, column 1 of package:tutorial/component/view_recipe.dart: Unable to find view_recipe.html at tutorial|view_recipe.html
@Component(
^^^^^^^^^^^
[Warning from _Serial on tutorial|web/main.dart with input tutorial|lib/component/search_recipe.dart]:
line 5, column 1 of package:tutorial/component/search_recipe.dart: Unable to find search_recipe.html at tutorial|search_recipe.html
@Component(
^^^^^^^^^^^
[Warning from _Serial on tutorial|web/main.dart with input tutorial|lib/component/rating.dart]:
line 30, column 1 of package:tutorial/component/rating.dart: Unable to find rating.html at tutorial|rating.html
@Component(
^^^^^^^^^^^
[Info from Dart2JS]:
Compiling tutorial|web/main.dart...
[Dart2JS on tutorial|web/main.dart]:
1 warning(s) suppressed in package:route_hierarchical.
[Dart2JS on tutorial|web/main.dart]:
1 warning(s) suppressed in package:angular.
[Info from Dart2JS]:
Took 0:00:20.202480 to compile tutorial|web/main.dart.
Built 190 files to "build".
[mulander@koparo Chapter_06]$
joegillon commented 9 years ago

I see this also, but there may be an effect. recipe_book.html is not finding the stylesheet. The recipe list pointer isn't giving me the finger. If I add the style to the li itself I do get the finger, which shows the stylesheet is not being found. Index.html finds it, as proven when I add a body background-color to the stylesheet.

joegillon commented 9 years ago

Also, when I first run Chapter 2 or 3 I get this Dartium Launch Error:

java.net.ConnectException: Connection refused: connect

Then, when I do the exact same thing again, it works.

joegillon commented 9 years ago

I can get the finger on the recipe list if I put style.css in lib/components and add

cssUrl: 'style.css'

to the RecipeBookComponent. But I haven't figured out how to find style.css when it's elsewhere.