You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
こんな感じのタスクを0.0.5に食わせるとTypeScript 0.8.1 に食わせるとエラーを吐きます。
TypeScript 0.8.0 だと大丈夫です。
詳しい原因とか解決方法は深く追っている時間がなかったのでわかりません。ごめんなさい。
$ 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)
The text was updated successfully, but these errors were encountered: