How to fix RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 18182. i am using vscode and nodejs amplify.
I run the ui code with npm start. Normally the site should be open. I am using react and nodejs with TypeScript.
This happens when the maximum number of file watchers limits exceeded on your system.
If you try to run many applications at a same time, this problem occurs.
To solve the issue on Linux based operating system execute the following command in terminal,
//for Debian, RedHat and other similar Linux distros
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
//for ArchLinux
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system