Skip to content
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

🐛 BUG: doesn't react when I change files #2728

Closed
7flash opened this issue Mar 7, 2022 · 8 comments
Closed

🐛 BUG: doesn't react when I change files #2728

7flash opened this issue Mar 7, 2022 · 8 comments

Comments

@7flash
Copy link

7flash commented Mar 7, 2022

What version of astro are you using?

^0.23.7

What package manager are you using?

pnpm

What operating system are you using?

Windows 11

Describe the Bug

When I make change to .astro file I am expecting my web browser page to automatically reflect changes, but currently it doesn't happen even after I manually refresh page; it only shows updated page after I manually stop astro process and run "npm start" again

I think the issue is related to using WSL 2.0

Link to Minimal Reproducible Example

any template works in cloud environment, but not working in my WSL

@7flash
Copy link
Author

7flash commented Mar 7, 2022

Found Solution: move project folder to WSL home directory

@gbizetdev
Copy link

Maybe I'm wrong, but I don't think it's related to WSL. I get same issue on Mac with astro files. And it happens when modifying vanilla js in <script> tags and <style> tags too.

@RanRocha
Copy link

RanRocha commented Mar 9, 2022

It is not working for me also. Using Visual Studio Code on Windows 10.

@dfghjkjhgr
Copy link

I think it's fixed in astro@next

@dfghjkjhgr
Copy link

Never mind

@natemoo-re
Copy link
Member

This seems like an old HMR issue? We recently did an overhaul of our HMR handling, but please feel free to re-open if you're still experiencing a problem related to .astro files.

@alfawal
Copy link
Contributor

alfawal commented Aug 20, 2023

@natemoo-re it still exists when running projects from /mnt

@alfawal
Copy link
Contributor

alfawal commented Aug 20, 2023

My issue is Windows <=> WSL related. Symlinks won't fix the issue either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants