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

raise error on TypeScript 0.8.1 #10

Closed
vvakame opened this issue Nov 19, 2012 · 2 comments
Closed

raise error on TypeScript 0.8.1 #10

vvakame opened this issue Nov 19, 2012 · 2 comments

Comments

@vvakame
Copy link
Contributor

vvakame commented Nov 19, 2012

こんな感じのタスクを0.0.5に食わせるとTypeScript 0.8.1 に食わせるとエラーを吐きます。
TypeScript 0.8.0 だと大丈夫です。
詳しい原因とか解決方法は深く追っている時間がなかったのでわかりません。ごめんなさい。

        typescript:{
            client:{
                src:['client/scripts/main.ts'],
                dest:'client/scripts/main.js',
                options:{
                    target:'es5',
                    sourcemap:true,
                    declaration_file:true
                }
            }
        }

$ grunt typescript
Running "typescript:client" (typescript) task

TypeError: Cannot read property 'requireSemi' of undefined
at new TypeScriptCompiler (/Users/vvakame/work/hoge/node_modules/typescript/bin/typescript.js:23005:72)
at Object.module.exports (/Users/vvakame/work/hoge/node_modules/grunt-typescript/tasks/typescript.js:220:24)
at Task.helper (/opt/local/lib/node_modules/grunt/lib/util/task.js:119:19)
at Object. (/Users/vvakame/work/hoge/node_modules/grunt-typescript/tasks/typescript.js:118:15)
at Object.task.registerMultiTask.thisTask (/opt/local/lib/node_modules/grunt/lib/grunt/task.js:109:15)
at Object.task.registerTask.thisTask.fn (/opt/local/lib/node_modules/grunt/lib/grunt/task.js:58:16)
at Task. (/opt/local/lib/node_modules/grunt/lib/util/task.js:343:36)
at Task. (/opt/local/lib/node_modules/grunt/lib/util/task.js:319:9)
at Task. (/opt/local/lib/node_modules/grunt/lib/util/task.js:346:11)
at Task.start (/opt/local/lib/node_modules/grunt/lib/util/task.js:359:5)

@Lugribossk
Copy link

The signatures of the TypeScript.TypeScriptCompiler constructor and it's emit() method seem to have changed. Try removing the first argument to them in tasks/typescript.js, that made it run for me.

@k-maru
Copy link
Owner

k-maru commented Nov 24, 2012

Lugribossk の指摘どおり TypeScriptCompiler と emit 関数の引数が変わってたので対応しました。

@k-maru k-maru closed this as completed Nov 24, 2012
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

3 participants