wclr / ts-node-dev

Compiles your TS app and restarts when files are modified.
MIT License
3.43k stars 123 forks source link

fsevents bug #241

Open maxpain opened 3 years ago

maxpain commented 3 years ago

Issue description

[INFO] 00:58:15 Restarting: /Users/maxpain/dev/ts-node-dev-bug/src/index.ts has been modified
Compilation error in /Users/maxpain/dev/ts-node-dev-bug/src/index.ts
[DEBUG] 00:58:15 Removing all watchers from files
[DEBUG] 00:58:15 Child is already stopped, probably due to a previous error
[DEBUG] 00:58:15 Starting child process -r /var/folders/cr/spyrm0756395s_k0ltj3l39m0000gn/T/ts-node-dev-hook-7843833544662526.js /Users/maxpain/dev/ts-node-dev-bug/node_modules/ts-node-dev/lib/wrap.js src/index.ts
Assertion failed: (napi_create_string_utf8(env, events->events[idx].path, NAPI_AUTO_LENGTH, &args[0]) == napi_ok), function fse_dispatch_event, file ../src/fsevents.c, line 147.

Context

OS version (is it docker or host?), ts-node-dev version macOS 11.1 (20C69) on Apple Silicon (M1 / ARM) Node v14.15.4 NPM v6.14.10

Did you try to run with ts-node? No

Did you try to run with --files option enabled? Yes, it helps to avoid this problem.

Did you try to run with --debug option enabled? Yes

Do you have a repro example (git repo) with simple steps to reproduce your problem? https://github.com/maxpain/ts-node-dev-bug

  1. npm install
  2. npm start
  3. Try to change the file
bahtou commented 3 years ago

I am getting the same error Assertion failed: (napi_create_string_utf8(env, events->events[idx].path, NAPI_AUTO_LENGTH, &args[0]) == napi_ok), function fse_dispatch_event, file ../src/fsevents.c, line 147.

UPDATE: not sure how relevant this is in association with https://github.com/paulmillr/chokidar/issues/855 UPDATE 2: OSX Catalina: v10.15.7 NodeJS: v15.4.0 NPM: v7.0.15

Ericnr commented 3 years ago

Im getting the exact same error too on tsnd versions 1.1.1, 1.1.0 and 1.0.0 macOS 10.15.7 Node v12.18.3 NPM v6.14.6

dollysingh3192 commented 3 years ago

Getting the same error.

macOs Sierra version 10.12.6 node v12.18.2 npm 6.14.5

Screen Shot 2021-01-21 at 12 24 15 AM
wclr commented 3 years ago

Report your OS, please.

maxwellsmart84 commented 3 years ago

node = 14.5.4 npm = 6.14.11 macOs Big Sur = 11.1

alexf101 commented 3 years ago

Me too: node = v10.20.1 yarn = v1.22.4 macOs Catalina 10.15.7