Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

toJavaScript() failed with "Cannot find type definition file for 'node'." on [email protected] #82

Closed
gfx opened this issue Jun 28, 2017 · 3 comments · Fixed by #84
Closed

Comments

@gfx
Copy link

gfx commented Jun 28, 2017

via espower-typescript:

Error: Cannot find type definition file for 'node'.
    at TypeScriptSimple.toJavaScript ($project/node_modules/typescript-simple/index.js:168:23)
    at TypeScriptSimple.compile ($project/node_modules/typescript-simple/index.js:69:25)
    at Object.loadTypeScript ($projectnode_modules/espower-typescript/index.js:19:22)
    at Module.load (module.js:503:32)
@teppeis
Copy link
Owner

teppeis commented Jun 28, 2017

It seems one of implicit breaking changes between typescript v2.4.0 and v2.4.1.
If you remove compilerOptions.types of tsconfig.json, this error is resolved.
But there is another issue power-assert-js/espower-typescript#30 ...

@gfx
Copy link
Author

gfx commented Jun 28, 2017

Right, causing another issues:

$project/node_modules/typescript-simple/index.js:182
            var text = file.text;
                           ^
TypeError: Cannot read property 'text' of undefined
    at TypeScriptSimple.toJavaScript ($project/node_modules/typescript-simple/index.js:182:28)

I'll watch the TypeScript issue for now

@teppeis
Copy link
Owner

teppeis commented Jul 2, 2017

@gfx Fixed! Use [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants