devv-ai / devv

An AI-powered search engine for developers.
https://devv.ai
1.32k stars 22 forks source link

render https://devv.ai error in electron app #120

Open skrskrcyy opened 2 months ago

skrskrcyy commented 2 months ago

I am a heavy user of devv.ai. When I open devv.ai in Chrome, I often get lost among many tabs and end up opening multiple devv.ai instances even when I just want to ask a few questions.

Therefore, I have the following requirements:

A desktop app for Mac that can be opened independently of Chrome.

  1. The Mac app should embed Chromium.
  2. The Mac app should be able to listen to shortcut keys for quick opening and closing, like option + space.
  3. The Mac app should directly display the devv.ai webpage.
  4. Focus on asking and answering questions. To meet these requirements, I cloned the electron-react-boilerplate to quickly start a local Electron app and directed the render process URL to https://douyin.com/.

However, I encountered the following error:

SCR-20240413-obgw

Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.

However, when I enter location.href = 'https://devv.ai' in the console, it works.

SCR-20240413-nyls

My environment (local env, not production env):

  1. System: Mac arm64 Sonoma 14.4.1
  2. Electron template: electron-react-boilerplate v4.6.0
forrestchang commented 2 months ago

Working on this issues now.

cc @Bohan-J