What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux

Error that occurred

TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
    at Object.watch (fs.js:1470:11)
    at add (/home/reoring/git/yyts/yychat-server/node_modules/filewatcher/index.js:74:34)
    at /home/reoring/git/yyts/yychat-server/node_modules/filewatcher/index.js:93:5
    at FSReqCallback.oncomplete (fs.js:177:5)

approach

Add --poll to the startup options of node-dev.

  "scripts": {
    "start:dev": "ts-node-dev --poll src/index.ts",
  },

reference

How to fix: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js

Recommended Posts

What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do if you get stuck during Anaconda installation on Linux
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an error when installing python with pyenv
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you can't use WiFi on Linux
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do when you get "I can't see the site !!!!"
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if you forget your login password on Manjaro Linux
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
What to do if you get a "No versions found" error in pipenv
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get an "unknown service" error from your gRPC server
What to do if you get the message "" ~ .pkg "is corrupted and cannot be opened" when installing wxPython on Mac OS X
What to do if the Microsoft Store opens even if you run python on Windows
What to do if you installed pyenv on Mac OS using Homebrew but the python version doesn't switch
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get "coverage unknown" in Coveralls
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What to do if you don't want to use Japanese column names when using ortoolpy.logistics_network
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
[* CentOS 6.10] What to do if you cannot add the IUS Community Project repository on CentOS 6.5 (VirtualBox)
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get a UnicodeDecodeError with pip install
What to do if you can't use the trash in Lubuntu 18.04.
What to do if the library doesn't load when you run it in PyCharm, even though it works fine on terminal
What to do if you get an error saying c compiler cannot create executables in configure
[Docker] What to do when error Couldn't find the binary git appears
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if an error occurs when importing numpy with VScode
What to do if you get a TypeError with numpy min, max
What to do if you get Could not fetch URL 443 with pip
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you get `locale.Error: unsupported locale setting` when getting the day of the week from a date in Python
What to do if you can't pipenv shell
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
Workaround if you get an error when trying to install PySide with pip
What to do if you get angry with swapon failed: Operation not permitted
[Python] What to check when you get a Unicode Decode Error in Django
What to do if a version error occurs in the selenium Chrome driver
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
If you get stuck when building pycocoapi on Windows
What to do if you can't pip install mysqlclient
No module named What to do if you get'libs.resources'