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

Warning: Cannot read property 'astIDString' of undefined Use --force to continue. #44

Closed
mickdelaney opened this issue Sep 4, 2013 · 5 comments

Comments

@mickdelaney
Copy link

I'm getting an a warning when compiling:

Warning: Cannot read property 'astIDString' of undefined Use --force to continue.
I've looked around but I cant seem to get much information on this.

Any idea what it is???

My Grunt File:

grunt.initConfig({
typescript: {
base: {
files: {
'Web/App/Src.js': 'Web/App/Src.ts',
'Web/App/Specs.js': 'Web/App/Specs.ts'
},
options: {
module: 'amd',
target: 'ES3',
sourcemap: false,
declaration: false
}
}
},

@karimbeyrouti
Copy link

Yep - I get the same error when compiling:
Warning: Cannot read property 'astIDString' of undefined Use --force to continue.

am also unable to get any information on this. Any help would be very appreciated.

    typescript: {

        base: { // Export Concatenated JavaScript from Main TS file
            src: '../src/Away3D.ts',
            dest: '../lib/src/Away.js',
            options: {
                target: 'es5'
            }
        }

    },

Please do let me know if you have resolved this ( or found the issue ) .

Thank you !

@karimbeyrouti
Copy link

Here is a link the full Gruntfile.js, and package.json - if it helps:

https://gist.github.com/karimbeyrouti/6549253

I have the latest node.js installed. Also - error does not seem to happen if I target es3. Although due to TypeScript errors the script might not reach the end where the error occurs.

Thank you !

@karimbeyrouti
Copy link

@mickdelaney : until this gets fixed - this one worked for us: https://github.com/basarat/grunt-ts

@mickdelaney
Copy link
Author

@karimbeyrouti switched over to it also. Cheers

@jvilk
Copy link

jvilk commented Oct 25, 2013

Same issue here. Thanks for the pointer to grunt-ts.

@k-maru k-maru closed this as completed Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants