How to use (mqtt) js library in angular 2 typescript app?
I closely paralleled the approach taken in how-to-use-moment-js-library-in-angular-2-typescript-app but still get error TS2307: Cannot find module 'mqtt'. npm install --save mqtt <s>typings install --save mqtt</s that didn't find the typings but this did... typings install mqtt --save --ambient my tsconfig.conf looks like this { "compilerOptions": { "noImplicitAny": true, "module": "commonjs", "target": "ES5", "emitDecoratorMetadata": true, "experimentalDecorators": true, "sourceMap": true, "declaration": true }, "files": [ "ng2-mqtt.ts" ], "exclude": [ "node_modules" ] } and ng2-mqtt.ts just