Skip to content

[windows][dart][alpha.51] Transformer error on @View styleUrls  #5772

@avoivo

Description

@avoivo

I have the following component

@Component(
  selector: "main"
)
@View(
  templateUrl: "package:angular2_example/components/main_component.html",
  styleUrls: const ["package:angular2_example/components/main_component.css"]
)
class MainComponent{

}

and when i execute 'pub build' i get the following

[Info from Dart2JS]:
Compiling angular2_example|web/main.dart...
[Error from Dart2JS on angular2_example|web/main.dart]:
packages\angular2_example\components\main_component.css.shim.dart:5:28:
Can't find ']' to match '['.
\n}'];lor:red;YLES = const ['div[_ngcontent-%COMP%]{
                           ^
[Error from Dart2JS on angular2_example|web/main.dart]:
packages\angular2_example\components\main_component.css.shim.dart:5:71:
Expected a declaration, but got '}'.
\n}'];lor:red;YLES = const ['div[_ngcontent-%COMP%]{
                                                                      ^

I have created an example here.

I also have tested it on a Ubuntu machine on which 'pub get' executed without any problems.

Dart VM versions on both machines is 1.13.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions