-
Notifications
You must be signed in to change notification settings - Fork 320
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
No UI only "Hello World" served by FastAPI #45
Comments
Set Up the GUI Application
I am having issues running the Electron app, but I am hoping others have better luck. |
Hello, Vnl. I hope you're doing fine. I followed this step by step, but got errors during npm install and consequently could not run it. (base) ➜ electron-react-app git:(main) npm install
> postinstall
> ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll
Error: Cannot find module 'chalk'
Require stack:
- /Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:1038:27)
at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
at Module.require (node:internal/modules/cjs/loader:1297:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js:2:1)
at Module._compile (node:internal/modules/cjs/loader:1460:14)
at Module.m._compile (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1544:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-native-dep.js'
]
}
npm error code 1
npm error path /Users/jmbenedetto/code/llama-fs/electron-react-app
npm error command failed
npm error command sh -c ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll
npm error A complete log of this run can be found in: /Users/jmbenedetto/.npm/_logs/2024-07-01T13_25_32_495Z-debug-0.log
(base) ➜ electron-react-app git:(main) npm start
> start
> ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer
Error: Cannot find module 'chalk'
Require stack:
- /Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:1038:27)
at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
at Module.require (node:internal/modules/cjs/loader:1297:12)
at require (node:internal/modules/helpers:123:16)
at Object.<anonymous> (/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1460:14)
at Module.m._compile (/Users/jmbenedetto/code/llama-fs/electron-react-app/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1544:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/jmbenedetto/code/llama-fs/electron-react-app/.erb/scripts/check-port-in-use.js'
]
}
(base) ➜ electron-react-app git:(main) |
Oh yeah, I have those errors too :) Just waiting to see if anyone else fixed this. |
I dont think i got the same errors as you guys, but after following your instructions i got the gui to open in its own window, however it didn't function and kept spitting out errors. ' buildTree' & 'handleBranch' were the two most common, and would displayed in the gui itself. ive seen a project called notLlamaFS that seems promising for windows users. also; [25804:0717/193341.302:ERROR:CONSOLE(2)] "Electron sandboxed_renderer.bundle.js script failed to run", source: node:electron/js2c/sandbox_bundle (2) |
hi,man, i think this is a node.js version problem, maybe you can change version and try again.(mime is v18) |
✅ Working fine on Windows 11 with Node v16.15.0 |
如果你看得懂中文, 同时你在某个地方,那应该是某种你懂的原因造成的。 |
Hello. Thanks a lot for the tool and I think it you be really helpful.
I followed the instalation instructions from readme file, but can not see the UI. See bellow the fast api activation and the resulting page:
Could you please advise?
The text was updated successfully, but these errors were encountered: