Skip to content

Provide better error location information (ng build --prod) #11569

@FritzHerbers

Description

@FritzHerbers
- [x] feature request

Running ng build doesn't produce failures, as ng build --prod produces the following failure:

...
chunk {16} runtime.667016fda4470b3fa9d5.js (runtime) 2.23 kB [entry] [rendered]
chunk {17} styles.d744bf875eaf9597f61a.css (styles) 208 kB [initial] [rendered]
chunk {18} polyfills.26f656e0dd3658ccb4ae.js (polyfills) 64.3 kB [initial] [rendered]
chunk {19} main.c0317666bd9cf215c3b9.js (main) 1.74 MB [initial] [rendered]

WARNING in Unexpected '}' at 10501:18.

WARNING in Invalid character(s) '}

' at 10501:18. Ignoring.

WARNING in Invalid property name '0% {
    opacity' at 10495:2. Ignoring.

Have been looking in the source, but there are too many occurences of 'opacity'.
I only had 4 generated files which have more than 10000 lines, but didn't find the failure.
Using ng build --prod --verbose did not provide more information.
How can I figure out the location of these errors?
How do the line numbers get calculated?

Please provide better error location information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions