Autobuilding in dev mode stops on stylelint error
See original GitHub issueIf 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:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wellyshen ah mesa muppet. Thanks for looking into / pointing it out to me.
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 :