Skip to content

defining .component.ts as style will make serve fail/freeze without error #8560

Closed
@filipvh

Description

@filipvh

versions

angular 5.0.0 & 5.0.2
angular-cli 1.5.0 & 1.5.2

command
ng serve --aot

last output line
19% building modules 83/83 modules 0 active
so, no error or so...

faulty code (in component):
styleUrls: ['./someComponentFile.component.ts'],

Repro steps

  1. Make a component
  2. Point a styleUrl(s) to a component.ts file

Observed behavior

No error is thrown, one would expect something.

Desired behavior

Throw error 'yu must be drinkn'

Mention any other details that might be useful (optional)

It's a stupid one, but lost a lot of time, feeling even more stupid but happy when I found it =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions