microsoft / chat-copilot

MIT License
1.92k stars 650 forks source link

Cannot read properties of undefined (reading 'getLogger') #989

Closed mrugeles closed 2 weeks ago

mrugeles commented 1 month ago

Describe the bug The webapp in macos has issues running,

To Reproduce Steps to reproduce the behavior:

  1. ./start.sh

Expected behavior The following error appears in the browser

Uncaught runtime errors: ERROR Cannot read properties of undefined (reading 'getLogger') TypeError: Cannot read properties of undefined (reading 'getLogger') at http://localhost:3000/static/js/bundle.js:203651:21 at mountMemo (http://localhost:3000/static/js/bundle.js:152517:23) at Object.useMemo (http://localhost:3000/static/js/bundle.js:152902:20) at useMemo (http://localhost:3000/static/js/bundle.js:168700:25) at MsalProvider (http://localhost:3000/static/js/bundle.js:203650:64) at renderWithHooks (http://localhost:3000/static/js/bundle.js:151745:22) at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:155029:17) at beginWork (http://localhost:3000/static/js/bundle.js:156325:20) at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:141341:18) at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:141385:20) Screenshots Screenshot 2024-05-24 at 2 09 37 PM

Platform

JasonHaley commented 1 month ago

I just noticed this too. Seems to be due to a change last week in index.tsx. If I change the isAuthAAD if block to extend to line 63 (instead of stopping at 50) it seems to work without configuring AAD. I will want to do the AAD auth, but wanted to start learning it without first.

Here is the change I made locally: image

mrugeles commented 1 month ago

Hi @JasonHaley that actually works. Thanks

Joan-BdM commented 1 month ago

This solved my issues with multiple "Uncaught TypeError" appearing on start. Thanks!

revilhui commented 3 weeks ago

thanks~

guymerin commented 2 weeks ago

Thanks @JasonHaley that worked

glahaye commented 2 weeks ago

Fixed with #994