Currently, I am utilizing the parcel (v2.0.1) localhost server with hot module replacement for developing a basic web application using HTML, SASS, and JS. While the HMR functionality generally works well, there are instances where, especially after significant code changes, the server updating ceases to function entirely. This means not only does HMR fail to work, but even manually reloading the page or restarting the server doesn't reflect any modifications. To ensure it wasn't just oversight on my part, I deliberately introduced changes that should have broken certain features, yet the page continued to operate normally.
I attempted deleting the .parcel-cache and dist folders and restarting parcel, but to no avail. Even rebooting my computer did not resolve the issue. The only reference I found related to this problem is in this github discussion.
Is anyone facing a similar challenge? Your insights would be greatly appreciated!
Below is the content of the package.json file:
{
"name": "",
"version": "1.0.0",
"description": "",
"source": "index.html",
"scripts": {
"start": "parcel index.html",
"build": "parcel build index.html"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@parcel/transformer-sass": "^2.0.1",
"parcel": "^2.0.1"
},
"dependencies": {
"core-js": "^3.19.3",
"fractional": "^1.0.0",
"regenerator-runtime": "^0.13.9"
}
}