davideicardi / live-plugin-manager

Plugin manager and installer for Node.JS
MIT License
225 stars 43 forks source link

0.14.1 -> 0.15.1 issue on 0.15.1 #44

Open gbacskai opened 3 years ago

gbacskai commented 3 years ago

Hi, 0.14.1 works fine, on 0.15.1 I have the following issue:

TypeError: console.Console is not a constructor at PluginVm.createGlobalSandbox (PluginVm.ts:438) at PluginVm.getPluginSandbox (PluginVm.ts:377) at PluginVm.createModuleSandbox (PluginVm.ts:176) at PluginVm.load (PluginVm.ts:37) at PluginManager.load (PluginManager.ts:624) at PluginManager.require (PluginManager.ts:188) at Object.init (amazon_buy_from_shopify.js:34) at async HTMLButtonElement.document.getElementById.onclick (script.js:405)

gbacskai commented 3 years ago

0.15.0 has the same issue (only this package version been changed, anything else remains)

davideicardi commented 3 years ago

Are you running it inside an Electron app? Can you provide me an example (or unit test)?