-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error recovery from Sass errors #7374
Comments
+1. I'm also running into same issue. It happens when I'm watching and make a syntax mistake. After rectifying it + save, the bundler does not automatically bundle. I had to close and re-watch. |
Can someone post a reproduction with instructions on how to trigger this bug? |
Sure. will come back with a screenshot. |
Hey @mischnic, It's my first time logging a bug, but I'll try to be concise: Set up
Reproducing bug:
I also discovered this set up works with normal .css files. It's Sass (maybe transformer-sass?) that is the problem. I'm not sure if it's similar to what @razvanandreib is facing. If it's not, I can create a new issue. |
I have exactly the same problem as @bensanlau. The issue also occurs with pug files. In my example: *not-imported by My script: |
@bensanlau Thanks! I can reproduce that. This might also be happening for Elm: #6124 |
Actually, the problem seems to be that Sass, Elm and Pug all throw an error on a parser error and don't return the list of additionally included files (header.scss). So Parcel doesn't know that these other files also need to be watched. parcel/packages/transformers/sass/src/SassTransformer.js Lines 76 to 80 in 13649c3
|
Any updates here how to fix it? i don't want to relaunch dev every time i slowly typed {} π |
Also experience this problem. Any updates? |
Watching with interest for this bugfix. Thanks for the efforts fixing this! |
π bug report
As I start typing in the scss file , I immediately get this error and it happens everytime:
And parcel stops to function, i need to close it and npm start all over again.
π Configuration (.babelrc, package.json, cli command)
π¦ Context
I try to write css in the scss files and immediatly after i start typing i get this error.
π» Code Sample
π Your Environment
| Node v17.1.0 |
| npm/Yarn 8.1.2 |
| Operating System Windows 10 |
The text was updated successfully, but these errors were encountered: