我试图在电子JS中使用电子标签模块。
但是在导入模块时,导致此错误“ ReferenceError:未定义文档”
我检查了错误的出处。来自const TabGroup = require("electron-tabs");
我引用了此链接enter link description here
我没做错,为什么会发生错误?有人可以帮助我吗?
App threw an error during load
ReferenceError: document is not defined
at Object.<anonymous> (D:\TASK(2020.1.1~)\twitterbot\node_modules\electron-tabs\index.js:3:1)
at Module._compile (internal/modules/cjs/loader.js:968:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
at Module.load (internal/modules/cjs/loader.js:816:32)
at Module._load (internal/modules/cjs/loader.js:728:14)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Module.require (internal/modules/cjs/loader.js:853:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (D:\TASK(2020.1.1~)\twitterbot\main.js:6:18)
谢谢