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
to add to that, I can compile the ts file directly via tsc and it writes the conent into the file.
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
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
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