-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with lib setting in the tsconfig.json #196
Comments
@basarat Are you able to suggest what might be causing this particular TypeScript error? The version of Node.js that seems to be the problem is 6.5.0. As the OP has stated, the builds are passing on several other Node.js versions. |
It looks like is behaving like if I used |
I've been testing and it looks like tsify uses |
The options passed to
there seems to be something amiss with the lib paths:
Which could have a similar effect to |
Thanks a lot for your help :) |
I've found the problem. There is a new method in the compile host - This will be patched pretty soon. Strangely, I cannot see how this could possibly be working on other versions of Node.js. I tried it on a VM with 4.5.0 and it failed. So your passing builds are something of a mystery. |
I tried in my laptop (OSX with node v5.8.0) and it was fine. Tried then with node v6.5.0 and it is fine too. There must be something weird in AppVeyor. |
My laptop and VM are both Windows boxes. It looks like Windows is the common denominator. I cannot say that I'm surprised; dealing with backslash replacement is an ongoing source of frustration with the TypeScript compiler. It looks like there's yet another place in which TypeScript's However, I still cannot see why it wouldn't fail on the AppVeyor builds that used other versions of Node.js. |
Yep, calling |
This should be resolved by #197. I've published 1.0.6 to NPM. |
Thanks a lot! 😄 |
So I'm targeting ES5 but I have added support for some ES6 elements using
lib
intsconfig
:You can see my tsconfig.json if you need it.
I'm using
typescript@rc
2.0 and this is my gulp task:You can see my gulpfile.js if you need it.
I run the build in AppVeyor and is failing only in one version of node:
You can see all the build logs here and the failing build here.
The error is:
This maybe think that it could be related with the
lib
setting in thetsconfig.json
file but I'm not sure.Thanks!
The text was updated successfully, but these errors were encountered: