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

Parcel not reloading on save due to name of parent folder. #2231

Closed
RustyRaptor opened this issue Nov 1, 2018 · 3 comments
Closed

Parcel not reloading on save due to name of parent folder. #2231

RustyRaptor opened this issue Nov 1, 2018 · 3 comments
Labels

Comments

@RustyRaptor
Copy link

🐛 bug report

Parcel is not rebuilding or reloading the dev server when I save files.

🎛 Configuration (.babelrc, package.json, cli command)

package.json:

{
  "name": "nmeistheenemy",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

🤔 Expected Behavior

should rebuild and reload the page.

😯 Current Behavior

doesn't

There is no error.

💁 Possible Solution

🔦 Context

I am running the most basic program to see why this is happening.
index.html:

<html>
<body>
  <script src="./index.js"></script>
</body>
</html>

index.js

console.log("hello");
console.log("world");

🌍 Your Environment

I am using Ubuntu 18.04 with the latest version of Parcel on npm. I am using Visual Studio code to edit the code but I also tried this by directly using the echo command on the file as well as some other text editors.

I tried changing the watch limit for inotify in the OS with

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

As well as editing the config file and increasing the watches value to 999999

I also tried to see if it was the "safe write" in editors but it's clearly not as VS code doesn't use safe write and I tried writing directly to the files.

I had this issue with webpack as well but I fixed it with the file watch limit fix. I am moving to parcel because it's much easier to use for small projects.

Software Version(s)
Parcel 1.10.3
Node 10.6.0
npm/Yarn 6.1.0, yarn is 1.10.1 (i tried both yarn and npm for the project)
Operating System Ubuntu 18.04 LTS
@RustyRaptor
Copy link
Author

Ok so I found that other thread where the issue is the folder name being x.github.io and I now realize that this is the case for me as well. The parent folder of the folder the project is in was called rustyraptor.github.io. Go figure. So this is just a duplicate of that bug.

@RustyRaptor RustyRaptor changed the title Parcel not rebuilding/reloading on save. (tried known solutions) Parcel not rebuilding/reloading on save due to name of parent folder. Nov 8, 2018
@RustyRaptor RustyRaptor changed the title Parcel not rebuilding/reloading on save due to name of parent folder. Parcel not reloading on save due to name of parent folder. Nov 8, 2018
@RustyRaptor
Copy link
Author

#2093

@DeMoorJasper
Copy link
Member

Closing as its a duplicate

Sent with GitHawk

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

No branches or pull requests

3 participants
@DeMoorJasper @RustyRaptor and others