I'm trying to make an Ionic mobile app with Angular, and running the start script, my terminal is flooded with this:
[ng] Error from chokidar (/home/ben/Nextcloud/codn/FH-Cross-Platform/Whiteout/Whiteout/node_modules/ionicons/dist/ionicons/svg): Error: ENOSPC: System limit for number of file watchers reached, watch '/home/ben/Nextcloud/codn/FH-Cross-Platform/Whiteout/Whiteout/node_modules/ionicons/dist/ionicons/svg/resize-sharp.svg'
...one of these errors for each file in the folder!
I've found the inotify problem description and standard fix for this, but it doesn't work for me:
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
I still get the error. What confuses me a bit is that the error is about file watchers, but the solution deals with user watchers. However, it was suggested to work for this issue here, here and here.
Problem seems to exist for React as well: