Skip to content

Wrong errors logged when --include-css and --resolve-url used concurrently #2125

Closed
@cspotcode

Description

Here is a simple reproduction case, ready to fork and run: https://gist.github.com/cspotcode/19a42c629944f4e074d5

This bug occurs when:

  1. One .styl file @requires another
  2. The second .styl file has a syntax error
  3. Both --include-css and --resolve-url are enabled (or the equivalent is done with the JavaScript API)

Instead of logging a normal error message, which is useful and shows exactly what's wrong:

unexpected "}"

...it logs this error, which I'm pretty sure is a stylus bug and not an intentional error:

Cannot read property 'nodeName' of undefined

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions