question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TypeError: Cannot read property 'start' of undefined] on Mac

See original GitHub issue

After I run npm install and npm run hot-server, npm run start-hot fails with the below; what am I doing wrong? Thank you

ericat ~/electron-react-boilerplate $ npm run start-hot

> electron-react-boilerplate@0.7.1 start-hot /Users/ericat/electron-react-boilerplate
> cross-env HOT=1 NODE_ENV=development electron ./

App threw an error when running [TypeError: Cannot read property 'start' of undefined]

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EduardoSantos7commented, Mar 3, 2019

In my case the solution appears after check the python-shell official documentation. ‘electron’ is correct and be sure to pass run function all the parameters that the function needs (following some tutorials, I was not writting arguments: options) also be sure to write correctly PythonShell

const { app, BrowserWindow } = require('electron')

let { PythonShell } = require('python-shell')

PythonShell.run('hello.py', null, function (err, results) {
    if (err) throw err;
    console.log('hello.py finished.');
    console.log('results', results);
});

Hope be useful!

0reactions
MichaelITcommented, Feb 21, 2017

I got same error as @Ericat ,it worked after I just run npm run dev in iterm instead of atom terminal plugin.

https://github.com/electron/electron-quick-start/issues/113

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'start' of undefined
But i'm getting Uncaught TypeError: Cannot read property 'start' of undefined inside the while loop although it is able to read the ...
Read more >
Render error: TypeError: Cannot read property 'get' of undefined
New config on an old device, and Edgerouter5 PoE running 1.7, started getting "Render error: TypeError: Cannot read property 'get' of undefined" on...
Read more >
Avoiding those dang cannot read property of undefined errors
Uncaught TypeError: Cannot read property 'foo' of undefined. ​ The dreaded error we all hit at some point in JavaScript development.
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
You likely have two errors. The first is that you are trying to send an email from a cacheable method (which you can't...
Read more >
CS305856 - Mac OS Uncaught TypeError: Cannot read ... - PTC
Browser log error " Uncaught TypeError: Cannot read property 'SessionStartup' of undefined " on version TWX 8.3.3 in Mashup Editor with Mac.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found