You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because buildCtx.filesChanged is normalised but config.globalStyle is not so the string compare fails. This is probably effecting imports as well however i don't use them in my project so haven't checked.
See #4898 for the patch that fixed the issue for me.
Activity
[-]bug: [/-][+]bug: globalStyle failing HMR on Windows[/+]4leite commentedon Oct 26, 2023
@rwaskiewicz this effects both watch and regular build (it's not an HMR issue), it's a file diff problem.
I am happy to raise a PR with the one line fix I linked above that resolves the issue.
rwaskiewicz commentedon Oct 26, 2023
Hey @4leite 👋
Thanks! I'm planning on working on a fix today - turns out this bug is a little more systemic that just for
globalStyleunfortunately 😢rwaskiewicz commentedon Nov 2, 2023
(Still working on this)
fix(compiler): normalize paths on windows
rwaskiewicz commentedon Nov 9, 2023
@4leite Thanks for your patience!
Can you do me a favor and give the following dev build of Stencil a try when you get a chance?
fix(compiler): normalize paths on windows (#4997)
tanner-reits commentedon Nov 13, 2023
The fix for this went out as a part of today's v4.7.2 release!
4leite commentedon Feb 13, 2024
@tanner-reits Sorry took a while to get back on this project. I can confirm that this is resolved for ours with release v4.7.2.
Thanks.