konsumer / tplink-lightbulb

Control TP-Link smart lightbulbs from nodejs
MIT License
191 stars 32 forks source link

ReferenceError: regeneratorRuntime is not defined #57

Closed nolageek closed 3 years ago

nolageek commented 3 years ago

I'm getting this error on Windows 10:

C:\Users\streaming\Downloads\win-x64\win-x64>tplight.exe scan pkg/prelude/bootstrap.js:1320 return wrapper.apply(this.exports, args); ^

ReferenceError: regeneratorRuntime is not defined at C:\snapshot\tplink-lightbulb\build\cli.js at Object. (C:\snapshot\tplink-lightbulb\build\cli.js) at Module._compile (pkg/prelude/bootstrap.js:1320:22) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1218:10) at Module.load (internal/modules/cjs/loader.js:1047:32) at Function.Module._load (internal/modules/cjs/loader.js:935:14) at Function.Module.runMain (pkg/prelude/bootstrap.js:1375:12) at internal/main/run_main_module.js:17:47

konsumer commented 3 years ago

Hmm, I think this is related to how the cli runtime is compiled. I will look into it. It generally means babel is messed up.

konsumer commented 3 years ago

I updated the last release, but I don't have a win-box to test right now, so try it out and let me know if it works.

konsumer commented 3 years ago

Without more input, I'm going to close this. Lemme know if it's not working.