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

open dev on brower #1516

Open
PengTanguo opened this issue Sep 3, 2024 · 1 comment
Open

open dev on brower #1516

PengTanguo opened this issue Sep 3, 2024 · 1 comment

Comments

@PengTanguo
Copy link

ERROR
Cannot read properties of undefined (reading 'invoke')
TypeError: Cannot read properties of undefined (reading 'invoke')
at DesktopPlatform.getLocale (http://localhost:1212/renderer.dev.js:178674:39)
at http://localhost:1212/renderer.dev.js:176051:99
at http://localhost:1212/renderer.dev.js:176056:15
ERROR
Cannot read properties of undefined (reading 'invoke')
TypeError: Cannot read properties of undefined (reading 'invoke')
at DesktopPlatform.getLocale (http://localhost:1212/renderer.dev.js:178674:39)
at http://localhost:1212/renderer.dev.js:176051:99
at http://localhost:1212/renderer.dev.js:176056:15

@rba100
Copy link

rba100 commented Sep 16, 2024

I have the same issue. More details:

  • platform: Windows
  • Cannot read properties of undefined (reading 'onSystemThemeChange') Does this function exist on all platforms?
  • Call stack per PengTanguo above, but there are 18 other times the error occurs, probably all solved by fixing references to onSystemThemeChange :
 DesktopPlatform.getSettings
  renderer.dev.js:178735:25
 undefined
  renderer.dev.js:181090:87
 ./src/renderer/setup/sentry_init.ts
  renderer.dev.js:181113:3
 options.factory
  renderer.dev.js:254402:31
 __webpack_require__
  renderer.dev.js:253817:32
 fn
  renderer.dev.js:254061:21
 ./src/renderer/index.tsx
  renderer.dev.js:176739:76
 options.factory
  renderer.dev.js:254402:31
 __webpack_require__
  renderer.dev.js:253817:32
 undefined
  renderer.dev.js:255048:37

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

2 participants