Install offline-plugin locally. Ensure that the local node_modules folder is in PATH.
run the following command: dts-gen -m offline-plugin or dts-gen -m "offline-plugin" (in the above directory).
Error:
Unexpected crash! Please log a bug with the commandline you specified.
/home/node/workspace/node_modules/dts-gen/bin/lib/run.js:130
throw e;
^
TypeError: Cannot read property 'version' of undefined
at Object.get (/home/node/workspace/node_modules/offline-plugin/lib/index.js:741:33)
at getProperty (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:254:30)
at Array.map (native)
at getPropertyDeclarationsOfObject (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:250:25)
at getTypeOfValue (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:237:33)
at getResult (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:173:32)
at getTopLevelDeclarations (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:123:17)
at getResult (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:148:17)
at getTopLevelDeclarations (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:123:17)
at Object.generateModuleDeclarationFile (/home/node/workspace/node_modules/dts-gen/bin/lib/index.js:49:19)
To reproduce:
dts-gen -m offline-plugin
ordts-gen -m "offline-plugin"
(in the above directory).Error: