Skip to content

Throw better error for invalid code #110

@fisker

Description

@fisker
require("postcss-scss").parse('@import ur l(//a)')

Throws

Uncaught TypeError: Cannot read property 'line' of null

      at ScssParser.atrule (node_modules/postcss-scss/node_modules/postcss/lib/parser.js:362:21)
      at ScssParser.parse (node_modules/postcss-scss/node_modules/postcss/lib/parser.js:51:16)
      at scssParse (node_modules/postcss-scss/lib/scss-parse.js:9:10)
     

Should throw a better error or something else.

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