@rezarazavipour
node.js developer
Nothing here yet.
Nothing here yet.
No blogs yet.
got it but when I add it to an Angular2 project, I get an error saying: const http = require('http'); if looks for ./https.js. this project uses systemjs for loading modules. Any ideas on how to get around that?
I am not using injectable decorator as I am only using it in a vanilla TS module, same as I use the lodash module or moment... I tried using the request module by install the npm module and importing as 'request': './node_modules/request/index.js', in systemjs.config.js and in my module file, I have import request = require('request'); and the compiler complains that it cannot find module request. Thoughts? Is there a number of fixed steps that one has to perform to use vanilla node module in a TS or Angular 2 project?