siddrrsh / ambientGPT

278 stars 21 forks source link

Cannot run the app properly #5

Open southkorea2013 opened 6 months ago

southkorea2013 commented 6 months ago

Hi ,

I get the following output after running "npm run dev". Thanks.

(ambientGPT) ***@Nan-M3 ambientGPT % npm run dev

my-app@0.1.0 dev concurrently -n "NEXT,ELECTRON" -c "yellow,blue" --kill-others "next dev" "electron ."

[ELECTRON] (node:60616) electron: Failed to load URL: http://localhost:3000/ with error: ERR_CONNECTION_REFUSED [ELECTRON] (Use Electron --trace-warnings ... to show where the warning was created) [NEXT] ▲ Next.js 14.1.0 [NEXT] - Local: http://localhost:3000 [NEXT] [NEXT] ⚠ Invalid next.config.mjs options detected: [NEXT] ⚠ Unrecognized key(s) in object: 'future' [NEXT] ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config [NEXT] ⨯ API Routes cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export [NEXT] ✓ Ready in 1593ms [NEXT] ✓ Compiled / in 239ms (879 modules) [ELECTRON] 2024-05-24 10:11:33.155 Electron[60616:2371354] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit

I also tried to open http://localhost:3000, the following error is prompted Unhandled Runtime Error TypeError: undefined is not an object (evaluating 'window.electronAPI.on')

Nan

scaiado commented 6 months ago

same problem here. no success still

[NEXT] ▲ Next.js 14.1.0 [NEXT] - Local: http://localhost:3000 [NEXT] [NEXT] ⚠ Invalid next.config.mjs options detected: [NEXT] ⚠ Unrecognized key(s) in object: 'future' [NEXT] ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config [NEXT] ⨯ API Routes cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export [NEXT] ✓ Ready in 1983ms [NEXT] ○ Compiling / ... [NEXT] ✓ Compiled / in 610ms (879 modules) [NEXT] ✓ Compiled in 1989ms (786 modules) [NEXT] ✓ Compiled in 760ms (786 modules)

at localhost i'm getting Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'on')

Source src/components/MessageMode/index.tsx (44:23) @ on

42 | useEffect(() => { 43 | //@ts-ignore

44 | window.electronAPI.on("receiveTokens", (event, arg) => { | ^ 45 | setCurrentMessage(arg); 46 | }); 47 |

lout33 commented 6 months ago

same bug