Ts-node-dev: fsevents bug

Created on 6 Jan 2021  路  6Comments  路  Source: wclr/ts-node-dev

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

Most helpful comment

node = 14.5.4
npm = 6.14.11
macOs Big Sur = 11.1

All 6 comments

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

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

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

Report your OS, please.

node = 14.5.4
npm = 6.14.11
macOs Big Sur = 11.1

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pvtri96 picture pvtri96  路  10Comments

jraoult picture jraoult  路  3Comments

JaLe29 picture JaLe29  路  9Comments

Yegorich555 picture Yegorich555  路  4Comments

sveyret picture sveyret  路  4Comments