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

Cache on Windows 10 #13

Closed
eugene-beliaev opened this issue Jul 9, 2020 · 8 comments
Closed

Cache on Windows 10 #13

eugene-beliaev opened this issue Jul 9, 2020 · 8 comments

Comments

@eugene-beliaev
Copy link

I use Windows 10 and when I run "npm run start" I have to manually remove .cache folder after changes in code and then run "npm run start" again. Otherwise it always builds old changes, even if I changed some code and run "npm run start"

@jetli
Copy link
Owner

jetli commented Jul 9, 2020

Hi, I don't have windows 10, but I cannot reproduce this on Mac OS, hot reloading is working on mac when editing codes.
Can you try again on Mac os or linux?

@eugene-beliaev
Copy link
Author

I can of course try on Linux, but I'd like to use the tool on Windows as well, as it's my primary OS.

@Jupp56
Copy link

Jupp56 commented Oct 27, 2020

I can reproduce the problem as mentioned on Win10 and second on "I should be able to code on Windows".
Luckily, there is a workaround: WSL works perfectly. I had node and cargo already installed, so a quick cargo install wasm-pack later everything worked just fine, including the browser opening automatically.

If you want to do that: Install WSL (i use ubuntu), install node, install rust, install wasm-pack and you should be good to go.

@mirus-ua
Copy link
Contributor

I can confirm. I have this issue on Windows 10 2004 19041.630
rustc 1.43.1 (8d69840ab 2020-05-04)
cargo 1.43.0 (2cbe9048e 2020-05-03)
node v12.16.3

@titaneric
Copy link

Same here, I find it little annoyed.

Windows 10 Home 20H2 19042.630
rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24)
cargo 1.49.0-nightly (dd83ae55c 2020-10-20)
node v12.19.0
npm 6.14.8

@mirus-ua
Copy link
Contributor

I investigated a bit and here what I got.
Here rustwasm/rust-parcel-template#47 folks got the same issue.

HR not working only if files located inside the Windows file system. If you move them to WSL FS everything will work fine.

Here the question in which part of the bundle we got this issue?

BTW a small offtopic: WSL2 didn't open the browser automatically with this error: Unexpected error while opening in browser: true someone knows how to fix it?

@lord-ne
Copy link

lord-ne commented Jul 4, 2022

This is still an issue as of July 2022

@jetli
Copy link
Owner

jetli commented Jul 16, 2023

upgrade to use trunk, npx [email protected] my-app

@jetli jetli closed this as completed Jul 16, 2023
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

6 participants