_hashids2.default不是构造函数(电子远程)

时间:2018-09-19 07:19:01

标签: electron

尝试使用以下命令导入requireTaskPool:

import { requireTaskPool } from 'electron-remote';

出现错误:

TypeError: _hashids2.default is not a constructor
    at Object.<anonymous> (/Users/tuhin/id-desktop/node_modules/electron-remote/lib/execute-js-func.js:123:17)
    at Object.<anonymous> (/Users/tuhin/id-desktop/node_modules/electron-remote/lib/execute-js-func.js:685:3)
    at Module._compile (module.js:642:30)
    at Object.Module._extensions..js (module.js:653:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/node_modules/electron-remote/lib/index.js:3:22)

0 个答案:

没有答案