The standard "import blah = require ('x')" semantics in typescript does not work with node modules.
The easiest way to get around this is to define and use the interface and use it explicitly, rather than import:
// You can put this in an external blah.d file if you like; // remember, interfaces do not emit any code when compiled. interface qOrm { blah:any; } declare var require:any; var qOrm:qOrm = require("../node_modules/q-orm/lib/q-orm"); var x = qOrm.blah;
source share