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

🐛 ReferenceError: appData is not defined #26

Open
gabe-l-hart opened this issue Feb 4, 2025 · 1 comment
Open

🐛 ReferenceError: appData is not defined #26

gabe-l-hart opened this issue Feb 4, 2025 · 1 comment

Comments

@gabe-l-hart
Copy link

Description

Disclaimer: I'm a total novice at frontend frameworks, so this could easily be user error!

When trying to run in development mode (npm run start), I'm able to get through the initial installation phase and Open WebUI boots successfully in a subprocess (I can access it via http://localhost:8080 in a browser tab), but the Electron app fails to render. It reaches the stage where it attempts to render the main UI, but only displays a black page with the OI logo. The console shows the following error:

Image

Full Log
VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
  Policy set or a policy with "unsafe-eval" enabled. This exposes users of
  this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ VM4 sandbox_bundle:2
logSecurityWarnings @ VM4 sandbox_bundle:2
(anonymous) @ VM4 sandbox_bundle:2
load
securityWarnings @ VM4 sandbox_bundle:2
./lib/renderer/common-init.ts @ VM4 sandbox_bundle:2
__webpack_require__ @ VM4 sandbox_bundle:2
(anonymous) @ VM4 sandbox_bundle:2
(anonymous) @ VM4 sandbox_bundle:2
___electron_webpack_init__ @ VM4 sandbox_bundle:2
(anonymous) @ VM4 sandbox_bundle:2
+layout.svelte:218 Uncaught (in promise) ReferenceError: appData is not defined
    at +layout.svelte:218:6
(anonymous) @ +layout.svelte:218
await in (anonymous)
J @ utils.js:41
(anonymous) @ Component.js:47
_t @ scheduler.js:99
jt @ Component.js:164
Et @ root.svelte:23
se @ client.js:451
J @ client.js:1428
await in J
oe @ client.js:384
fn @ client.js:1756
vn @ client.js:311
await in vn
(anonymous) @ (index):105
Promise.then
(anonymous) @ (index):104
Show 9 more frames
Show less

Environment

  • Platform: MacOS 15 .1.1, M3 Max
  • Repo Commit: c36ab79
  • Node: v22.13.0

package-lock.json

Repro Steps

  1. use nvm to select v22 (=> v22.13.0)
  2. npm i
  3. npm run create:python-tar
  4. npm run start

My only thought was that this was caused by an incompatibility with the latest version of open-webui's frontend, so I modified this line to pass 0.5.6 as the pinned version. I verified in the terminal logs that it installed v0.5.6, but that did not fix the issue.

@gabe-l-hart
Copy link
Author

I also tried downgrading electron-forge to 7.5.0 in case it was related to this issue, but no luck.

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

1 participant