-
-
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
Parcel V2 - Sass changes do not update in DIST folder #5965
Comments
I have same issue here with follow
and
If you change anything in
But do not know, if that can cause that behavior. here short video https://streamable.com/084nr5 |
I just moved to Parcel "parcel-bundler": "^1.12.3", and it works perfectly. So is definitely parcel 2 that has a bug. |
Version |
@RavenJe-dev Please try a recent nightly |
version |
Sorry for my mistake, I didn't properly migrate before. So version ^2.0.0-nightly.615 is giving me the same error. Not updating files. |
Seems that version |
I can reproduce this with #5965 (comment). It's probably the same issue as #5927. |
This is an issue for less as well. For anyone waiting for this to be fixed, here are my workarounds: Workaround 1: After changing anything in style files, manually stop the parcel process, delete the entire Workaround 2: Downgrade to parcel v1 ( |
Can someone try the latest nightly? #6072 might have fixed this |
@mischnic I just tried the latest nightly with less. The updating part seems to be working. However, I am keep getting errors like However, after a quick search, that seems to be another issue though... |
Just to clarify, the issue seems to be only with editing less files. The js files seem to be fine so far. Therefore, they might be related. |
I just tried it with the latest nightly and SCSS. I'm still seeing the same {
"devDependencies": {
"@parcel/transformer-sass": "2.0.0-nightly.637",
"parcel": "2.0.0-nightly.635",
}
} |
There are two open issues for
|
Thanks for the hint. That only helps a little since both are unresolved and untouched for a while. |
Because I wasn't able to reproduce either of them locally. Can one of you share a reproduction (and steps what which file change, ... to trigger the error)? |
I'll prepare a repo. Should we continue over at #5036 then? |
Probably yes. (Depending on which of the two cases you ran into. I'm not sure if they're related) |
Hi, This is still an issue and scss files don't rebuild. Any progress on this ticket? |
Yeah same here. Does anyone have any work arounds? I'm inserting SCSS into shadow dom and it's going to be rough without this. Deleting cache didn't do anything all. I'm stuck manually refreshing each CSS change. :C |
Upon some further testing, it looks like if I don't "save" with a syntax error on SCSS file, it builds into dist just fine. It's only when there is syntax error and it's thrown on the console, is when it seems any further changes don't compile into the dist, until I restart the server. |
#6124 had the same exact symptoms @shaunakv1 reports, and was ultimately resolved with a fix to the way parcel handles cache invalidation when transformers throw errors in #7547. I suspect this is an issue different from the one originally reported here. The workarounds described in #6124 work here too, just touching any non-scss file that ultimately imports the one I'm editing kicks off parcel's rebuild, which makes the workflow quite a bit nicer than stopping and restarting the server all the time, but it's of course still suboptimal. I'd love to actually fix this, but I don't understand parcel or the scss-transformer internals well enough. Does anyone have a clue why the fix might not have taken for scss? |
🐛 bug report
After starting the live server on http://localhost:1234 with the command npm start and then changing a property of a sass file, nothing get updated in the CSS file generated in the dist folder.
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
I should save the sass file while the server is running and the change should be reflected in the CSS file inside the dist folder.
😯 Current Behavior
After I save the file, the CSS file generated by parcel is not changed at all.
💁 Possible Solution
No idea how to fix this.
🔦 Context
I'm trying to edit sass files of my project and I would like to see the changes I make automatically in the dist folder.
💻 Code Sample
🌍 Your Environment
Tree
The text was updated successfully, but these errors were encountered: