Open dkundel opened 7 years ago
Any updates here?
I had the same problem, it wasn't picking up the global process
, but it turned out to be issues elsewhere in the code that typescript via the editor didn't notice.
In any case, this bug probably fits more in https://github.com/electron/electron-compilers/issues
I think a feature request to support the entire tsconfig.json
would go well there too.
Hi everyone!
I think there is a problem with how TypeScript is being compiled. Effectively definitions aren't properly pulled in. Typically you would use in a TypeScript project a
tsconfig.json
file. It allows you to explicitly specify some compiler options but it also does a few things implicitly. Like pulling in TypeScript definition files that are in folders such astypings/
. This doesn't happen in this case at the moment. It seems like simply the respective lib file and the file to compile are being passed.As a result code such as:
doesn't compile since it's complaining that
__dirname
is not defined as I'm pulling in thenode
andelectron
definitions throughtypings/
. If I compile it viatsc
with atsconfig.json
everything compiles flawlessly.My
.compilerc
My
tsconfig.json
I think overall
tsconfig.json
should be supported just like.babelrc
is.Let me know what you think or if I'm doing something wrong. I think this project is cool and I would love to use it :)