Ts-node-dev: Running ts-node-dev at two projects at the same time crashes

Created on 12 May 2018  路  5Comments  路  Source: wclr/ts-node-dev

After launching the second time ts-node-dev, the first one throws this error:

/home/user/.local/lib/node_modules/ts-node-dev/lib/index.js:81
        var split = data.split('\n')
                         ^
TypeError: Cannot read property 'split' of undefined
    at ReadFileContext.callback (/home/user/.local/lib/node_modules/ts-node-dev/lib/index.js:81:26)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)

Most helpful comment

no luck, I tried with [email protected], and the first one still crashed,

this is the error:

Error reading compile request file { Error: ENOENT: no such file or directory, open '/tmp/.ts-node/compiled/12264977755469597.req'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/tmp/.ts-node/compiled/12264977755469597.req' }

sorry I didn't post it before

All 5 comments

Are you strarting exactly at the same time or what? Try the latest version should be fixed.

Start one, leave it running, start the other, then crashes the first one.
I'll try the latest version, thanks

no luck, I tried with [email protected], and the first one still crashed,

this is the error:

Error reading compile request file { Error: ENOENT: no such file or directory, open '/tmp/.ts-node/compiled/12264977755469597.req'
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/tmp/.ts-node/compiled/12264977755469597.req' }

sorry I didn't post it before

Well, can not reproduce it, I can start simultaneously two tasks, no error. Do your project has some intersections?

Btw the error Error reading compile request file above should not stop the process.

Well, can not reproduce it, I can start simultaneously two tasks, no error. Do your project has some intersections?

No, I test it with a new project, maybe my node version is related

$: node --version
v8.11.1
$: npm --version
6.0.1
Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxpain picture maxpain  路  6Comments

Derya picture Derya  路  6Comments

capc0 picture capc0  路  5Comments

Sytten picture Sytten  路  7Comments

DMCTowns picture DMCTowns  路  3Comments