For some strange reason when "serve" is running and had a page request files are not released and can't be updated by a build process. This only happens in Microsoft Windows (version 10 tested) and does not happen in Linux (Ubuntu tested).
Build project npm run build - build is successful as expected and I'm the owner of all files
Start server npm run http - serve http server starts as expected and I'm the owner of all files
Build project npm run build - build is successful as expected and I'm the owner of all files
Open browser and load site localhost:3000 (any browser, any page) - site loads as expected and I'm still the owner of all files
Build project npm run build - build fails with Error: EPERM: operation not permitted, lstat and the file it fails on does not have an owner (dir /q shows three dots as the owner indicating that the file is not owned by anyone).
Kill the "serve" process (ctrl-c) - all files are now gone
Build project npm run build - build is successful as expected and I'm the owner of all files
This is quite annoying as rebuilding while running the server isn't possible. Any clue what's going on here?
For some strange reason when "serve" is running and had a page request files are not released and can't be updated by a build process. This only happens in Microsoft Windows (version 10 tested) and does not happen in Linux (Ubuntu tested).
The issue can be recreated from the https://github.com/AmateurRadioSoftwareAward/AmateurRadioSoftwareAward.github.io project.
Steps to reproduce:
npm run build
- build is successful as expected and I'm the owner of all filesnpm run http
- serve http server starts as expected and I'm the owner of all filesnpm run build
- build is successful as expected and I'm the owner of all fileslocalhost:3000
(any browser, any page) - site loads as expected and I'm still the owner of all filesnpm run build
- build fails withError: EPERM: operation not permitted, lstat
and the file it fails on does not have an owner (dir /q
shows three dots as the owner indicating that the file is not owned by anyone).npm run build
- build is successful as expected and I'm the owner of all filesThis is quite annoying as rebuilding while running the server isn't possible. Any clue what's going on here?