-
Notifications
You must be signed in to change notification settings - Fork 122
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
Trying to use allowJS, getting error TS6054 #355
Comments
Hi, Also note that the Good luck. |
The My
I'm using
Anyway, I'm wondering why |
If you want tsc to use the native grunt.initConfig({
ts: {
default: {
tsconfig: {
passThrough: true
}
}
}
}); |
There's two simple reasons I can think of that |
Nice !
(and looking at And yes, I was going to play with glob files to include Thanks btw. |
I'm trying to slowly convert an JS project into a TS project. I started using
tsc
with a simple tsconfig.jsonWhich just takes the js files and puts them into the
app_gen
folder as expected.I found typeString/grunt-ts and decided to try and use it. I took the example config and added the
allowJS:true
flagI was expecting grunt-ts to do the same as the tsc with the tsconfig.json. Instead I get a error TS6054 for each js file in the project.
Why is this happening? tsc, even if allowJS is false, will ignore the js files.
As I said my goal is to slow convert the js files to ts files. I don't want to have to rename all the js files to ts.
Thanks in advance.
I just found the verbose flag, turned it on and I don't see the
--allowJs
flag being set.The text was updated successfully, but these errors were encountered: