Skip to content
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

electron:11.0.0,spectron:13.0.0 ran electron test demo, javascript error: javascript error: Cannot convert undefined or null to object #813

Open
yoresu opened this issue Dec 22, 2020 · 2 comments

Comments

@yoresu
Copy link

yoresu commented Dec 22, 2020

I am using electron: 11.0.0, spectron: 13.0.0 to run the test demo of electron,
javascript error: javascript error: Cannot convert undefined or null to object
(Session info: chrome=87.0.4280.60)
at Object.getErrorFromResponseBody (node_modules\webdriver\build\utils.js:94:12)
at WebDriverRequest._request (node_modules\webdriver\build\request.js:134:31)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Browser.wrapCommandFn (node_modules@wdio\utils\build\shim.js:63:29)
at async Browser.wrapCommandFn (node_modules@wdio\utils\build\shim.js:63:29)

image

@EnSec4Git
Copy link

EnSec4Git commented Jan 3, 2021

I'm having the exact same issue (down to the stack trace line / character numbers).
If this is relevant, I started from the Electron Vue scaffolding and updated all of the packages.

At this point, the dev process is rather opaque due to the complicated pipeline - Webpack, TypeScript, Babel, etc.
Can anyone recommend any way to get further visibility into this issue? @yoresu did you use the same scaffolding?

I see #812 shows similar symptoms, but in my case I don't see any output in the Electron windows, just an error message in the console where I start the spectron task.

@movitto
Copy link

movitto commented Jan 5, 2021

See #738 for a hotfix / workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants