Installed FontLoader module (npm -i FontLoader). dts-gen crashes when attempting to create the definition file:
sliver:projectX xandersoldaat$ dts-gen -m FontLoader
Unexpected crash! Please log a bug with the commandline you specified.
/usr/local/lib/node_modules/dts-gen/bin/lib/run.js:130
throw e;
^
ReferenceError: window is not defined
at Object. (/Users/xandersoldaat/Projects/projectX/node_modules/FontLoader/FontLoader.js:15:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/dts-gen/bin/lib/run.js:57:67)
at Module._compile (module.js:571:32)
sliver:projectX xandersoldaat$ uname -a
Darwin sliver.home 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Installed FontLoader module (npm -i FontLoader). dts-gen crashes when attempting to create the definition file:
sliver:projectX xandersoldaat$ dts-gen -m FontLoader Unexpected crash! Please log a bug with the commandline you specified. /usr/local/lib/node_modules/dts-gen/bin/lib/run.js:130 throw e; ^
ReferenceError: window is not defined at Object. (/Users/xandersoldaat/Projects/projectX/node_modules/FontLoader/FontLoader.js:15:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/dts-gen/bin/lib/run.js:57:67)
at Module._compile (module.js:571:32)
sliver:projectX xandersoldaat$ uname -a Darwin sliver.home 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Regards, Xander