Skip to content

Angular transformer is adding extra lines to Dart files -- the line number in stack traces do not match our source code #5281

@jbdeboer

Description

@jbdeboer

The Angular transformer is Component templates in the Dart files as a string of HTML.

This is causing the line numbers reported in stack traces to be incorrect.

Steps to reproduce:

pub serve test

In Dartium, open the component's Dart file, notice that the file numbers are shifted.

Suggested fix: include the HTML and CSS as strings at the end of the file. Reference those strings from the @component, taking care not to alter the line count.

Metadata

Metadata

Assignees

No one assigned

    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