Skip to content
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

Error with the task grunt-ts #352

Open
Estebitus opened this issue Apr 17, 2016 · 4 comments
Open

Error with the task grunt-ts #352

Estebitus opened this issue Apr 17, 2016 · 4 comments
Labels

Comments

@Estebitus
Copy link

I try to ignore the typings folder in my grunt coffee script, but when i execute the task it seems that is not excluding it.

This is my script

ts:
default:
src: ["/*.ts", "!typings//.ts", "!node_modules/__/.ts", "!bower_components/*/.ts"]
reference: "typings/reference.ts"

But it return me this. (This is the final part)

typings/main/ambient/lodash/index.d.ts(15824,1): error TS1128: Declaration or statement expected.

119 syntax errors
Error: tsc return code: 2
Warning: Task "ts:default" failed. Use --force to continue.

Aborted due to warnings.

Can somebody help me please?

@nycdotnet
Copy link
Contributor

If you want to use the reference feature of grunt-ts, the reference file must be included in the compilation src list. It appears you may also be missing some stars in your globs. Run grunt with the with --verbose option and it will show what tsc command-line is being used.

@Estebitus
Copy link
Author

the stars must be a problem with the copy paste, but there are here.

I have run it with --verbose but the return is the same (with more explanations but the same at least).

I need to exclude all the files *.d.ts because i don't need to transpile it and there is the problem.

@nycdotnet
Copy link
Contributor

Hi @Estebitus - sorry it took so long to get back to you. Have you figured out this issue? If not, I would like to help you but I don't think I can with the information you've provided. I need the exact text of the ts section in your gruntfile. I know it's using CoffeeScript - is there a way you can provide the transpiled Gruntfile.js or is Grunt expanding it directly? In either case, please paste in the text in a block using the "insert code" button in the GitHub button bar (or else you can use three back-ticks to mark the start and end of a code block). Thanks.

@VenkatRamReddyK
Copy link

FYI:
Warning: Task "ts" not found. Use --force to continue.

Aborted due to warnings.


 ts : {
      default: {
        src : ['<%= files.js %>'],
        options : {
          sourceMap : true

        }  // prestep ts compile and then do concat
      }
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants