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

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

Closed
teppeis opened this issue Jun 28, 2017 · 0 comments · Fixed by teppeis/typescript-simple#85

Comments

@teppeis
Copy link
Contributor

teppeis commented Jun 28, 2017

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
@teppeis teppeis changed the title "TypeError: Cannot read property 'text' of undefined" in TypeScript 2.4 "TypeError: Cannot read property 'text' of undefined" in TypeScript 2.4.1 Jun 28, 2017
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

Successfully merging a pull request may close this issue.

1 participant