Hi.
I try to get type definition of react-virtual-keyboard and virtual-keyboard libraries. They are installed.
Then I write dts-gen -m react-virtual-keyboard and get an error:
Error: jQuery requires a window with a document at module.exports (/.../.../node_modules/jquery/dist/jquery.js:31:12) at /.../.../node_modules/virtual-keyboard/dist/js/jquery.keyboard.js:2899:2 at $.keyboard.base (/.../.../node_modules/virtual-keyboard/dist/js/jquery.keyboard.js:36:20) at Object.<anonymous> (/.../.../node_modules/virtual-keyboard/dist/js/jquery.keyboard.js:40:2) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17)
What does it mean?
I tried to use var s = document.createElement('script'); s.src = 'https://unpkg.com/dts-gen/bin/browser-bundle.js'; document.body.appendChild(s); in browser, but it didn't help me. Perhaps, I did something wrong.
Hi. I try to get type definition of react-virtual-keyboard and virtual-keyboard libraries. They are installed. Then I write
dts-gen -m react-virtual-keyboard
and get an error:Error: jQuery requires a window with a document at module.exports (/.../.../node_modules/jquery/dist/jquery.js:31:12) at /.../.../node_modules/virtual-keyboard/dist/js/jquery.keyboard.js:2899:2 at $.keyboard.base (/.../.../node_modules/virtual-keyboard/dist/js/jquery.keyboard.js:36:20) at Object.<anonymous> (/.../.../node_modules/virtual-keyboard/dist/js/jquery.keyboard.js:40:2) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17)
What does it mean?
I tried to use
var s = document.createElement('script'); s.src = 'https://unpkg.com/dts-gen/bin/browser-bundle.js'; document.body.appendChild(s);
in browser, but it didn't help me. Perhaps, I did something wrong.