Identifying the Root Cause:
It appears that the value assigned to max_user_watches
in the file path
/proc/sys/fs/inotify/max_user_watches
is impacting webpack.
To verify your current value, run the command:
$cat /proc/sys/fs/inotify/max_user_watches
16384
In my situation, the value was set at 16384 and proved insufficient.
I experimented with various approaches including:
$ echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
However, despite altering the value, it reverted back to the default setting of 16384 upon system restart.
Resolution for Linux OS (e.g., Manjaro in my case):
Begin by creating a new file:
sudo nano /etc/sysctl.d/90-override.conf
Add the following line:
fs.inotify.max_user_watches=200000
A value of 200000 proved effective for me.
After creating the file and updating the value, simply restart your computer to implement the changes successfully.