-
Notifications
You must be signed in to change notification settings - Fork 21
Reference external modules #15
Comments
Disable semantic checks. It's an option. |
I'm looking at https://github.com/Microsoft/TypeScript/blob/v1.4/bin/typescriptServices.d.ts#L1086 |
@Maxim-Filimonov I've added about |
Resolving reference path in typescript-simple is not simple. |
Yeah I'm not an expert but maybe this can be adopted somehow: I'm using jest test framework to test react components written in typescript. I'm trying to use typescript-simple to compile *.ts files into .js so that jest can require them. Is that a valid use case or not? |
Valid use case. Its used by atom to allow it to |
gulp / grunt etc are great for complete validation of your code. Jest doesn't care. |
typescript-simple doesn't compile multiple file structure, because of the simplicity. |
@teppeis @basarat I appear to be having the same issue. I just discovered that atom uses this module to transpile TypeScript (https://github.com/atom/atom/blob/a70be30ee7017b86114592800d9d4bdccff88aa8/src/typescript.coffee#L60-L62) but I get |
@blakeembrey can you share the src code that atom is trying to compile? You shouldn't be getting this error because we have semantic checks switched of |
@blakeembrey I just did a quick test : this package works fine : https://github.com/basarat/atom-typescript-test/blob/master/index.ts#L1 |
Ok, I'm trying to update now just in case (turns out I'm using Atom |
@basarat That looks like it 👍 What did you do different? On that note, updating didn't change anything for me either. |
I did reload atom with |
@teppeis Issue is that |
@blakeembrey note that the current workaround is not to use reference imports. NOTE: reference imports should not be used and are not needed if you are using external modules with |
@basarat thanks! |
This change broke the |
Is it possible to use this module to compile source code which is using external modules?
I can't figure out how to make this simple file to work
Keep getting
The text was updated successfully, but these errors were encountered: