-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module regenerator-runtime
#33
Comments
Nevermind, it was my fault, I had some dead code that was settings |
regenerator-runtime
& Cannot read property 'Math' of nullregenerator-runtime
However, on fresh installs, |
@facekapow |
It's required at runtime, it should be a regular dependency; |
@facekapow |
I'm having this issue using Vanilla Javascript implementation. Version: 4.0.12
|
@littletinman did you run |
@automation-stack I ran |
I had this problem. I'm using a Mac so I had to open another tab in Terminal.app. You can just restart Terminal to be doubly sure. |
|
When using If this doesn't work for you try clearing the npm cache and then do For more information look here: https://babeljs.io/docs/en/babel-plugin-transform-runtime |
When trying to run an Electron app that uses this, it complains about not being able to find
regenerator-runtime
. Inspecting the code ofdist/index.js
reveals that this is true,regenerator-runtime
is required but not depended upon.Ok, that's fine, I just installedregenerator-runtime
manually. Except, now it's throwing because it can't readMath
from null. Once again, inspectingdist/index.js
shows that it's trying to getMath
from awindow
global. I'm trying to useelectron-sudo
in the main process, is this it only supposed to be used in the renderer process?The text was updated successfully, but these errors were encountered: