-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
"No space left on device" when running dev server #5261
Comments
Changes between those these releases: 288396a...5f72d6b Could you test which version is the first one that fails for you (the one that introduced this)? This is probably not actually caused by "No space left on device" but because there are too many watchers added to the filesystem? |
@mischnic I did not have time to bisect the changes, but I know nightly.475 and 476 have been working. |
I am experiencing this problem ATM as well. Just that I do not need to google out the
My environment:
|
I'm getting this today with
|
this workaround works for me. My environment:
|
This worked for me |
This comment solved my problem: |
this saved me |
This is a bit unsettling, the workaround works in my case but I have to set up the |
Parcel looks for the first directory that contains |
I invite you to try this:
and try to print the projectRoot (I put a line in Parcel is picking the highest (oldest?) parent directory with one of the I found I left a package-lock.json in an intermediate folder that shouldn't be there, after removing it I can use parcel normally, but this seems to be watching for a potentially full home directory of all parcel users. |
Hi, I am honestly not sure where the error is, but there are several strange things happening. I assume the function The other problem goes down to the search of mixed directories and files using the same function |
This happened to me when I moved the package.json up one directory. parcel always watches all files in the project directory, which in my case includes a huge vendor-directory with tens of thousands of files (this is a symfony application). The easiest solution would be if we could just tell parel to only watch certain directories. Is this currently possible? |
This would be a huge help for me too, people not debugging their dependencies don't need it watched for changes. And stuff like My current workaround is using nodemon to watch for changes and run a production build while my IDE reloads the page for me which works nice but is far from ideal (+ does not allow me to leverage parcels development features to the fullest). An idea: |
I have experienced this same problem on windows 10 whit parcel 2, I really don't know how to solve it I have colleagues who use this operating system. In ubuntu that code line solve my problem. sudo sysctl fs.inotify.max_user_watches=99999 |
Your system is littered with a lot of files, it is possible to reach this limit before exhausting the storage capacity of the drive. |
@devongovett Can't there be a way to just select directories to be excluded from watch? It's watching my enormous node_modules and it's totally unnecessary in my situation. An option to exclude dirs from watch would suffice. |
I'm not even using the dev server but I stumble on that issue too. Running Parcel 2.13.3 like this : await new Parcel({
entries: [ inputFile ],
mode: 'production',
defaultConfig: '@parcel/config-default',
shouldContentHash: false,
shouldAutoInstall: false,
defaultTargetOptions: {
sourceMaps: false,
distDir: outputFolder,
engines: { browsers: [ 'last 1 Firefox version' ] },
},
additionalReporters: [
{ packageName: '@parcel/reporter-cli', repoRoot },
],
hmrOptions: null,
serveOptions: false,
logLevel: 'verbose',
cacheDir: cacheDir,
watchDir: repoRoot,
}).run(); I get :
I don't understand why Parcel is trying to watch anything, I combed through the config and disabled all options that seemed related to watching (hmrOptions, serveOptions...). Why would Parcel try to watch when I explicitly use the method Changing the inotify limits is complicated, I'm not sudoer on my machine. Adding Does someone have any idea how I can fix this ? |
🐛 bug report
Running dev server outputs an error saying there's no empty space left on the device.
🎛 Configuration (.babelrc, package.json, cli command)
Zero configuration, running
yarn serve --https --host 0.0.0.0 --no-cache
🤔 Expected Behavior
Dev server should start
😯 Current Behavior
It immediately fails with:
🌍 Your Environment
This issue does not happen on 2.0.0-nightly.388 so I figure it has been introduced after.
The text was updated successfully, but these errors were encountered: