question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autobuilding in dev mode stops on stylelint error

See original GitHub issue

If running in dev mode (npm start), and you save a scss file that doesn’t meet the lint requirements, an unhandled promise stops to autobuilding and it can only be restarted again by restarting dev mode (CTRL+C and npm start).

Below is an example of the error:

webpack built 2c46991acd218b194d93 in 9297ms

src/components/UserList/styles.scss
 5:3  ✖  Unexpected empty line before nested rule   rule-nested-empty-line-before


(node:30980) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed because of a stylelint error.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bytesnzcommented, Nov 1, 2016

@wellyshen ah mesa muppet. Thanks for looking into / pointing it out to me.

0reactions
wellyshencommented, Nov 1, 2016

HI @bytesnz

It is a bug of webpack-isomorphic-tools, now it has been fixed (detail).

If you don’t want to stop the hot reloading process of .scss error, please turn the stylelint failOnError off from webpack config file, like below :

 new StyleLintPlugin({
      syntax: 'scss',
      failOnError: false,      // Disable style lint error terminating here
    }),
Read more comments on GitHub >

github_iconTop Results From Across the Web

Options - Stylelint
Automatically fix, where possible, problems reported by rules. For CSS with standard syntax, Stylelint uses postcss-safe-parser to fix syntax errors. When using ...
Read more >
Configuration | Stylelint
The search stops when one of these is found, and Stylelint uses that object. You can use the --config or configFile option to...
Read more >
Changelog | Stylelint
.reportedDisables will always be empty and the other properties will always be undefined, since these errors now show up in .results instead (#4973)....
Read more >
Command Line Interface (CLI) - Stylelint
If you are using · The process exits without throwing an error when glob pattern matches no files. · Path to a file...
Read more >
Ignoring code - Stylelint
Ignoring code · Combining rules · Using regex · Errors & warnings. Developer guide. Migration guide. Maintainer guide. About. On this page ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found