Issues running typescript with webstorm 6

Hi, jsut downloaded the trial and trying to run typescript.

I have node installed via nvm and have node configured along with the typescript filewatcher which is pointing at tsc.cmd.

the code im trying to compile is a single js file with a code sample form the typescript site.

I am getting a source map file with data in it but the js file remains empty.

Im getting this output to my console

/Users/xxxxxxxx/nvm/v0.8.21/lib/node_modules/typescript/bin/tsc --sourcemap typescripttest.ts

any ideas what the issue could be?

thanks,

Matt

4 comments

to add to that, I can compile the ts file directly via tsc and it writes the conent into the file.

0

ok, resolved this by running

sudo open -a WebStorm.app

Why do I have to run WS as sudo to execute this?

Is this a requirement or a bug?

Or do I need to change the permissions on tsc as a requirement?

thanks

0

I think it's a permission issue. Could you please provide an output of the following commands:

cd ~/nvm/v0.8.21/lib/node_modules/typescript/bin
ls -l | grep -e tsc

cd ~/Applications
ls -l | grep -e WebStorm

0

Hi, these are the outputs.

thanks


cd ~/nvm/v0.8.21/lib/node_modules/typescript/bin
ls -l | grep -e tsc



-rwxr-xr-x  1 xxxxxx  staff       40 27 Feb 18:20 tsc
-rw-r--r--  1 xxxxxx  staff  1226253 27 Feb 18:20 tsc.js



cd ~/Applications
ls -l | grep -e WebStorm

drwxr-xr-x@  9 xxxxxx  admin   306  5 Mar 19:41 WebStorm.app

0

Please sign in to leave a comment.