power-assert-js/espower-typescript

"TypeError: Cannot read property 'text' of undefined" in TypeScript 2.4.1

teppeis opened this issue · 0 comments

v2.4.0 is ok, but v2.4.1 throws an error...

/home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/typescript-simple/index.js:182
            var text = file.text;
                           ^

TypeError: Cannot read property 'text' of undefined
    at TypeScriptSimple.toJavaScript (/home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/typescript-simple/index.js:182:28)
    at TypeScriptSimple.compile (/home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/typescript-simple/index.js:69:25)
    at Object.loadTypeScript (/home/teppei/src/github.com/power-assert-js/espower-typescript/index.js:19:22)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at /home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/mocha/lib/mocha.js:230:27
    at Array.forEach (native)
    at Mocha.loadFiles (/home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/mocha/lib/mocha.js:227:14)
    at Mocha.run (/home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/mocha/lib/mocha.js:495:10)
    at Object.<anonymous> (/home/teppei/src/github.com/power-assert-js/espower-typescript/node_modules/mocha/bin/_mocha:469:18)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3