Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Added error handling in case if reading tsconfig fails #598

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Le0Michine
Copy link

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 Le0Michine force-pushed the handle-tsconfig-reading-failure branch from d1f1f16 to c517d4a Compare July 18, 2018 23:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant