Hello! I have a simple typescipt program /// <reference path="node-definitions/node.d.ts" />import fs = require('fs'); fs.writeFileSync("test.txt","HelloWorld");
when I run it, it says that fs is empty https://www.dropbox.com/s/ygvfi8us4mdignd/Screenshot%202015-06-11%2010.11.12.png?dl=0 the generated js code is correct https://www.dropbox.com/s/egl06maalnsd04e/Screenshot%202015-06-11%2010.21.24.png?dl=0 if I require other modules, for instance require(“path”) all is ok but require(“fs”) always returns empty Object as I see they are declared inside node.d.ts in the same way (“path” and “fs” modules) also I have tried different versions of node.d.ts and node.js (0.10 - 0.12) Maybe someone know how to solve this issue? p.s. clear js program with filesystem works perfectly -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/efdc02d1-8dc6-419e-a72f-88543a25daad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.