Open chapmanjacobd opened 4 years ago
Hmm good point. I've become a fan of TypeScript myself. I see there's a project for outputting typescript declaration files from haxe (the language daff is written in) https://lib.haxe.org/p/hxtsdgen/. I'll give it a shot when I can, but heads-up, I may not be able to get to this soon.
I've used this library before in R and I've really liked it. I'm trying to use it in a TypeScript project and would like to use Intellisense to make it easier but I get this error:
Could not find a declaration file for module 'daff'. '/home/xk/jim_davis_1978/node_modules/daff/lib/daff.js' implicitly has an 'any' type. Try `npm install @types/daff` if it exists or add a new declaration (.d.ts) file containing `declare module 'daff';
@chapmanjacobd Did you find a solution for integrating the library in a Typescript project? I'm looking to do the same in an Angular X project but getting lots of warnings:
WARNING in ./node_modules/sqlite3/lib/sqlite3-binding.js 4:14-35
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/node-pre-gyp/lib/pre-binding.js 20:22-48
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/node-pre-gyp/lib/util/versioning.js 17:20-67
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/daff/lib/daff.js
Module not found: Error: Can't resolve 'fibers' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/daff/lib'
WARNING in ./node_modules/node-pre-gyp/lib/util/compile.js
Module not found: Error: Can't resolve 'node-gyp' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
WARNING in ./node_modules/node-pre-gyp/lib/util/compile.js
Module not found: Error: Can't resolve 'npm' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
WARNING in ./node_modules/minimatch/minimatch.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/minimatch'
WARNING in ./node_modules/sax/lib/sax.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sax/lib'
WARNING in ./node_modules/needle/lib/needle.js
Module not found: Error: Can't resolve 'zlib' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
WARNING in ./node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> <!doctype html>
| <html>
| <head>
33mWARNING in /Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/src/environments/environment.ts depends on 'zone.js/dist/zone-error'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
WARNING in /Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/src/app/services/release-candidate/release-candidate.service.ts depends on 'xlsx'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
ERROR in ./node_modules/node-pre-gyp/lib/info.js
Module not found: Error: Can't resolve 'aws-sdk' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/publish.js
Module not found: Error: Can't resolve 'aws-sdk' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/unpublish.js
Module not found: Error: Can't resolve 'aws-sdk' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/daff/lib/daff.js
Module not found: Error: Can't resolve 'child_process' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/daff/lib'
ERROR in ./node_modules/detect-libc/lib/detect-libc.js
Module not found: Error: Can't resolve 'child_process' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/detect-libc/lib'
ERROR in ./node_modules/node-pre-gyp/lib/testbinary.js
Module not found: Error: Can't resolve 'child_process' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/util/compile.js
Module not found: Error: Can't resolve 'child_process' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
ERROR in ./node_modules/osenv/osenv.js
Module not found: Error: Can't resolve 'child_process' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/osenv'
ERROR in ./node_modules/aws-sign2/index.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/aws-sign2'
ERROR in ./node_modules/aws4/aws4.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/aws4'
ERROR in ./node_modules/daff/lib/daff.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/daff/lib'
ERROR in ./node_modules/ecc-jsbn/index.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/ecc-jsbn'
ERROR in ./node_modules/http-signature/lib/signer.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/http-signature/lib'
ERROR in ./node_modules/http-signature/lib/verify.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/http-signature/lib'
ERROR in ./node_modules/needle/lib/auth.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/unpack.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/oauth-sign/index.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/oauth-sign'
ERROR in ./node_modules/request/lib/helpers.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request/lib'
ERROR in ./node_modules/request/lib/oauth.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request/lib'
ERROR in ./node_modules/request/lib/hawk.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request/lib'9m
ERROR in ./node_modules/sshpk/lib/key.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/fingerprint.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/signature.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/private-key.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/certificate.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/identity.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/dhe.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/utils.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/sshpk/lib/formats/pem.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib/formats'
ERROR in ./node_modules/sshpk/lib/formats/ssh-private.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib/formats'
ERROR in ./node_modules/sshpk/lib/formats/openssh-cert.js
Module not found: Error: Can't resolve 'crypto' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib/formats'
ERROR in ./node_modules/daff/lib/daff.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/daff/lib'
ERROR in ./node_modules/detect-libc/lib/detect-libc.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/detect-libc/lib'
ERROR in ./node_modules/fs.realpath/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/fs.realpath'
ERROR in ./node_modules/fs.realpath/old.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/fs.realpath'
ERROR in ./node_modules/glob/glob.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/glob'
ERROR in ./node_modules/glob/sync.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/glob'
ERROR in ./node_modules/ignore-walk/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/ignore-walk'
ERROR in ./node_modules/mkdirp/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/mkdirp'
ERROR in ./node_modules/needle/lib/needle.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/needle/lib/multipart.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/node-pre-gyp/lib/node-pre-gyp.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/clean.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/info.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/install.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/package.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/pre-binding.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/publish.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/rebuild.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/reinstall.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/reveal.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/testbinary.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/testpackage.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/unpublish.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/util/napi.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
ERROR in ./node_modules/node-pre-gyp/lib/util/compile.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
ERROR in ./node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
ERROR in ./node_modules/node-pre-gyp/node_modules/chownr/chownr.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/chownr'
ERROR in ./node_modules/node-pre-gyp/node_modules/fs-minipass/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/fs-minipass'
ERROR in ./node_modules/node-pre-gyp/node_modules/rimraf/rimraf.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/rimraf'
31mERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/create.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/replace.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/list.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/unpack.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/pack.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/extract.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/write-entry.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/mkdir.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/npm-bundled/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/npm-bundled'
ERROR in ./node_modules/request/lib/har.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request/lib'
ERROR in ./node_modules/daff/lib/daff.js
Module not found: Error: Can't resolve 'http' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/daff/lib'
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'http' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/forever-agent'
ERROR in ./node_modules/http-signature/lib/signer.js
Module not found: Error: Can't resolve 'http' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/http-signature/lib'
ERROR in ./node_modules/needle/lib/needle.js
Module not found: Error: Can't resolve 'http' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/request/request.js
Module not found: Error: Can't resolve 'http' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request'
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'http' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/tunnel-agent'
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'https' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/forever-agent'
ERROR in ./node_modules/needle/lib/needle.js
Module not found: Error: Can't resolve 'https' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/request/request.js
Module not found: Error: Can't resolve 'https' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request'
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'https' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/tunnel-agent'
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'net' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/forever-agent'
ERROR in ./node_modules/tough-cookie/lib/cookie.js
Module not found: Error: Can't resolve 'net' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/tough-cookie/lib'
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'net' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/tunnel-agent'
ERROR in ./node_modules/detect-libc/lib/detect-libc.js
Module not found: Error: Can't resolve 'os' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/detect-libc/lib'
ERROR in ./node_modules/has-unicode/index.js
Module not found: Error: Can't resolve 'os' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/has-unicode'
ERROR in ./node_modules/os-homedir/index.js
Module not found: Error: Can't resolve 'os' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/os-homedir'
ERROR in ./node_modules/fs.realpath/old.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/fs.realpath'
ERROR in ./node_modules/glob/glob.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/glob'
ERROR in ./node_modules/glob/sync.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/glob'
ERROR in ./node_modules/glob/common.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/glob'
ERROR in ./node_modules/ignore-walk/index.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/ignore-walk'
ERROR in ./node_modules/mime-types/index.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/mime-types'
ERROR in ./node_modules/mkdirp/index.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/mkdirp'
ERROR in ./node_modules/needle/lib/multipart.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/node-pre-gyp/lib/node-pre-gyp.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/clean.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/install.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/package.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/pre-binding.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/publish.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/testbinary.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/testpackage.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib'
ERROR in ./node_modules/node-pre-gyp/lib/util/compile.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
ERROR in ./node_modules/node-pre-gyp/lib/util/versioning.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/lib/util'
ERROR in ./node_modules/node-pre-gyp/node_modules/chownr/chownr.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/chownr'
ERROR in ./node_modules/node-pre-gyp/node_modules/rimraf/rimraf.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/rimraf'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/create.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/replace.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/list.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/unpack.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/pack.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/extract.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/write-entry.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/pax.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/header.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/parse.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/tar/lib/mkdir.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/tar/lib'
ERROR in ./node_modules/nopt/lib/nopt.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/nopt/lib'
ERROR in ./node_modules/npm-bundled/index.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/npm-bundled'
ERROR in ./node_modules/npm-normalize-package-bin/index.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/npm-normalize-package-bin'
ERROR in ./node_modules/npm-packlist/index.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/npm-packlist'
ERROR in ./node_modules/osenv/osenv.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/osenv'
ERROR in ./node_modules/sqlite3/lib/sqlite3.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sqlite3/lib'
ERROR in ./node_modules/sqlite3/lib/sqlite3-binding.js
Module not found: Error: Can't resolve 'path' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sqlite3/lib'
ERROR in ./node_modules/assert-plus/assert.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/assert-plus'
ERROR in ./node_modules/combined-stream/lib/combined_stream.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/combined-stream/lib'
ERROR in ./node_modules/delayed-stream/lib/delayed_stream.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/delayed-stream/lib'
ERROR in ./node_modules/isstream/isstream.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/isstream'
ERROR in ./node_modules/needle/lib/needle.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/needle/lib/parsers.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/needle/lib/decoder.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/needle/lib'
ERROR in ./node_modules/nopt/lib/nopt.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/nopt/lib'
ERROR in ./node_modules/request/request.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/request'
ERROR in ./node_modules/sshpk/lib/ed-compat.js
Module not found: Error: Can't resolve 'stream' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/sshpk/lib'
ERROR in ./node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'tls' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/forever-agent'
ERROR in ./node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'tls' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/tunnel-agent'
ERROR in ./node_modules/daff/lib/daff.js
Module not found: Error: Can't resolve 'tty' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/daff/lib'
ERROR in ./node_modules/node-pre-gyp/node_modules/minizlib/index.js
Module not found: Error: Can't resolve 'zlib' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/minizlib'
ERROR in ./node_modules/node-pre-gyp/node_modules/minizlib/constants.js
Module not found: Error: Can't resolve 'zlib' in '/Users/daniel/Workspace/RadialSpark/nugs-rm-qc-ui/node_modules/node-pre-gyp/node_modules/minizlib'
I've used this library before in R and I've really liked it. I'm trying to use it in a TypeScript project and would like to use Intellisense to make it easier but I get this error: