awesome-typescript-loader icon indicating copy to clipboard operation
awesome-typescript-loader copied to clipboard

Added error handling in case if reading tsconfig fails

Open Le0Michine opened this issue 7 years ago • 0 comments

I got the following error when was trying to setup typescript for an existing project:

Cannot read property 'compilerOptions' of undefined

After spending some time debugging I found out that current implementation doesn't check readConfigFile output and just passes it to parseJsonConfigFileContent which tries to access compilerOptions property. In this PR I added some error handling logic to let users know about the actual error in case if there is an issue with their tsconfig file.

Le0Michine avatar Jul 18 '18 23:07 Le0Michine