Questions tagged [chokidar]

Node.js library for the cross-platform files watching. Used by gulp, browser-sync and webpack.

Node.js library for the cross-platform files watching. Used by gulp, browser-sync and webpack.

81 questions
39
votes
10 answers

React npm start not working : 'No version of chokidar available'

I cloned my already working React-Typescript app on Github Pages, from Github and wanted to make some changes. I ran npm install and installed all the dependencies but when I run npm start, I got this error; I don't know what chokidar is and I…
İlker
  • 1,872
  • 1
  • 12
  • 28
18
votes
3 answers

Unsupported platform for fsevents@2.3.2 installation issue

I've been trying to deploy my application to vercel for a while now and have been reading through lots of posts here on stackoverflow with the the same/similar fsevents issue. Despite everything I keep getting the same errors posted below. things…
kevin
  • 2,707
  • 4
  • 26
  • 58
15
votes
1 answer

How to exclude node_modules from watchers files

When I do ng serve the log shows errors like this: Error from chokidar (/PATH_OF_MY_PROJECT/node_modules/ionicons/dist/ionicons/svg): Error: ENOSPC: System limit for number of file watchers reached, watch…
user3909865
  • 175
  • 1
  • 7
7
votes
1 answer

TypeError: path.join is not a function

The code that I have posted is working if I take AWAY the below function that I have wrapped the code with: watcher.on('add', function (path) { }); But if running the below code. I do get this error where path.join is not a function. As seen I…
Andreas
  • 1,121
  • 4
  • 17
  • 34
6
votes
4 answers

React js SyntaxError Occurs in Node Modules webpack chokidar.js 'return' outside of function (4:2)

I am facing this issue from last day.. No solution for this error Complete error log is mentioned below var v3Err; try { module.exports = require("chokidar"); return; } catch(e) { v3Err = e; } Error occurs in 'return' outside of…
jawad zahoor
  • 81
  • 1
  • 6
5
votes
0 answers

Folder not allowed to Rename a sub-folder or delete a non empty-sub-folder while the parent folder is being watched using Chokidar

While watching folder which has subfolders using Chokidar,The watch folder cannot be renamed. Versions:     Chokidar version: 3.5.2     Angular CLI: 12.0.2     Node: 16.17.0     Package Manager: npm 9.2.0     OS version: Windows…
AsiteUser
  • 217
  • 1
  • 4
5
votes
3 answers

vuejs - Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'

Description Everytime I run npm run serve the following error code appears: ERROR Failed to compile with 1 error 15:34:19 This dependency was not found: * ... in…
Adrien Brown
  • 61
  • 1
  • 1
  • 6
5
votes
2 answers

Do we really need VS Code's file watchers? What do they do? How can they be disabled?

VS Code is consuming my CPU resources intensively- mainly because of the file watcher. What does the file watcher do? In a react code, we already have hot-reload, do we really need this? How can we stop the file watcher completely? I tried to add…
Gaurav Sobti
  • 569
  • 1
  • 4
  • 14
5
votes
1 answer

nodejs re-import file when it changes

My main code is under chokidar watched folder, when a file changes it emit an event The main script is this const fileName = "test.ts"; import(fileName).then((t: any) => { t.default(); }); and this is the file test.ts export default () => { …
Mauro Sala
  • 1,166
  • 2
  • 12
  • 33
4
votes
5 answers

Error from chokidar : Error: UNKNOWN: unknown error, watch

In a new Angular app I'm getting the following error: Error from chokidar : Error: UNKNOWN: unknown error, watch I've deleted and re-installed node_modules, downloaded the entire project again etc. Node version is 12.18.2
pim
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Chokidar UNKNOWN error when running react app

I used react-slingshot (link) as my starter kit (which uses create-react-app as the base). Recently, I've got errors log when run script npm start on my project. I took some research on github as well as stack over flow but it seems these errors are…
thelonglqd
  • 1,805
  • 16
  • 28
4
votes
0 answers

Node.js - detect rename file/directory event

I need to detect rename event of a particular file/directory. I am using chokidar - this one triggers unlink and add events, thus it is not possible to use it. I also tried fs.watch - this one triggers two rename events, but unfortunately first one…
michal.jakubeczy
  • 8,221
  • 1
  • 59
  • 63
3
votes
2 answers

NuxtJS ignore webpack/chokidar watchers for specific file or folder

I'm using NuxtJS' serverMiddleware for logging. It works on every route. import { logger } from './utils/logger'; module.exports = function(req, res, next){ logger.info('log.js'); next(); } It works fine, but when im working on dev…
Muth
  • 43
  • 1
  • 4
3
votes
3 answers

Getting empty string from fs.readFile inside chokidar.watch(path_file).on('change', ...)

I have the following very simple Node project: https://github.com/tlg-265/chokidar-issue $ git clone https://github.com/tlg-265/chokidar-issue $ cd chokidar-issue $ npm i $ npm run watch-changes which basically takes care of detecting changes on…
Viewsonic
  • 827
  • 2
  • 15
  • 34
3
votes
3 answers

YARN START gives no space left on device error

OS : UBUNTU 18.04 I created a simple create-react-app project then fired up a server using yarn start. 30% of the times it works fine but 70% of the times I get the following error. Starting the development server... events.js:167 throw er; //…
Pramesh Bajracharya
  • 2,153
  • 3
  • 28
  • 54
1
2 3 4 5 6