I'm trying to follow the ReactJS tutorial at https://reactjs.org/tutorial/tutorial.html. I'm using Emacs to edit index.js, and when I edit the file (add a newline, let`s say), even without saving the file, instantly the server crashes and I get this output:
/home/myname/Code/project/reactapp/node_modules/react-scripts/scripts/start.
js:19
throw err;
^
[Error: ENOENT: no such file or directory, stat '/home/myname/Code/project/r
eactapp/src/.#index.js'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/home/myname/Code/project/reactapp/src/.#index.js'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reactapp@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactapp@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/myname/.npm/_logs/2020-06-25T03_16_55_466Z-debug.log
I've checked for the file .#index.js and it's a hidden file that looks like this
lrwxrwxrwx 1 myname myname 32 Jun 25 13:16 .#index.js -> myname@myname-pc.4444:1593054984
When I try to open it it tells me that it's a symbolic link to a file that doesn't exist.
I've tried restarting my machine, creating a new ReactJS project, and I'm really not sure what's going on. I've never used npm/nodejs/reactjs before. Any help would be much appreciated.