-
Notifications
You must be signed in to change notification settings - Fork 222
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
Uncaught TypeError: (0 , util_1.promisify) is not a function #279
Comments
Same issue here. I think the solution is this but the lib has to be updated.
|
Theoretically you should not have to shim it unless you're using a old version of node I think. What version of node are you using @uninstallit ? |
@Almenon I tried node v16, v18, and v20 . Open to suggestions. I am using |
@uninstallit did you find a solution to this? Running into the same issue (node v19) |
That's really wierd, because according to the node docs util.promisify has been part of the official node API ever since v8. See https://nodejs.org/docs/latest-v20.x/api/util.html#utilpromisifyoriginal @uninstallit is your electron code open-source, by chance? |
Describe the bug
Uncaught TypeError when importing PythonShell in TS linker file for running python script from Electron app. This also happens when using CommonJS with
const PythonShell = require('python-shell')
.Python code
No relevant python code. Error happens at the moment of import
Javascript code
import { PythonShell } from 'python-shell';
and
const PythonShell = require('python-shell');
Expected behaviour
No error. Allowing for creating python instance and running script in new process.
Actual behavior
Error message displayed in console.
Other Information (please complete the following information):
Additional context
Package.json:
The text was updated successfully, but these errors were encountered: