Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Fix the error when outDir compiler option is specified #27

Merged
merged 1 commit into from Feb 3, 2016

Conversation

aereal
Copy link
Contributor

@aereal aereal commented Dec 9, 2015

If outDir compiler option is specified, tss throws:

/.../node_modules/espower-typescript/node_modules/typescript-simple/index.js:135
            var text = file.text;
                           ^

TypeError: Cannot read property 'text' of undefined

Because TypeScript LS emits outputFiles consists of the files prefixed with outDir (e.g. built/file.js), so outputFiles never contain file.js.

Note:

This error encountered while I try to use espower-typescript.

teppeis added a commit that referenced this pull request Feb 3, 2016
Fix the error when outDir compiler option is specified
@teppeis teppeis merged commit 0336184 into teppeis:master Feb 3, 2016
@teppeis
Copy link
Owner

teppeis commented Feb 3, 2016

thanks! sorry to be late.

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

2 participants