Ts-node-dev: 1.0.0-pre.51 seems to break something

Created on 10 Jul 2020  路  3Comments  路  Source: wclr/ts-node-dev

Since updating from 50 to 51, I get the following error when running my development script

0 info it worked if it ends with ok                                                                                                                                         
1 verbose cli [ '/usr/local/bin/node',                                                                                                                                      
1 verbose cli   '/usr/local/bin/npm',                                                                                                                                       
1 verbose cli   'run',                                                                                                                                                      
1 verbose cli   'development' ]                                                                                                                                             
2 info using [email protected]                                                                                                                                                     
3 info using [email protected]                                                                                                                                                  
4 verbose run-script [ 'predevelopment', 'development', 'postdevelopment' ]                                                                                                 
5 info lifecycle [email protected]~predevelopment: [email protected]                                                                                      
6 info lifecycle [email protected]~development: [email protected]                                                                                         
7 verbose lifecycle [email protected]~development: unsafe-perm in lifecycle true                                                                                   
8 verbose lifecycle [email protected]~development: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/diccon/Web Server/node/sen$
9 verbose lifecycle [email protected]~development: CWD: /Users/diccon/Web Server/node/senate/authorization/api                                                     
10 silly lifecycle [email protected]~development: Args: [ '-c', 'ts-node-dev --respawn --transpileOnly ./src/app.ts' ]                                             
11 silly lifecycle [email protected]~development: Returned: code: 1  signal: null                                                                                  
12 info lifecycle [email protected]~development: Failed to exec development script                                                                                 
13 verbose stack Error: [email protected] development: `ts-node-dev --respawn --transpileOnly ./src/app.ts`                                                        
13 verbose stack Exit status 1                                                                                                                                              
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)                                               
13 verbose stack     at EventEmitter.emit (events.js:198:13)                                                                                                                
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)                                            
13 verbose stack     at ChildProcess.emit (events.js:198:13)                                                                                                                
13 verbose stack     at maybeClose (internal/child_process.js:982:16)                                                                                                       
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)                                                                               
14 verbose pkgid [email protected]                                                                                                                                 
15 verbose cwd /Users/diccon/Web Server/node/senate/authorization/api                                                                                                       
16 verbose Darwin 19.5.0                                                                                                                                                    
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "development"                                                                                              
18 verbose node v10.16.0                                                                                                                                                    
19 verbose npm  v6.14.6                                                                                                                                                     
20 error code ELIFECYCLE                                                                                                                                                    
21 error errno 1                                                                                                                                                            
22 error [email protected] development: `ts-node-dev --respawn --transpileOnly ./src/app.ts`                                                                       
22 error Exit status 1                                                                                                                                                      
23 error Failed at the [email protected] development script.                                                                                                       
23 error This is probably not a problem with npm. There is likely additional logging output above.                                                                          
24 verbose exit [ 1, true ]

Rolling back to 1.0.0-pre.50 seems to fix the issue

Node version is v12.18.2 (I know it says 10.16.0 in the log, but I've since upgraded and the issue remains).
TS version: 8.10.2

Most helpful comment

Change transpileOnly -> transpile-only

All 3 comments

Change transpileOnly -> transpile-only

@whitecolor: can you take a look at the PR to fix that, #106?

Ah, stuck at this as well

Maybe a more clear error message would be helpful?

image

Something like output the wrong parameter?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chnapy picture Chnapy  路  6Comments

danielpza picture danielpza  路  5Comments

pvtri96 picture pvtri96  路  10Comments

Sytten picture Sytten  路  7Comments

timsuchanek picture timsuchanek  路  6Comments