You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I cloned the latest main branch and built it locally following the instructions. Chrome shows errors when I load the package. The error messages are:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'config')
Context
options.html
Stack Trace
options.js:203 (anonymous function)
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'apiKey')
Context
https://github.com/sparticleinc/chatgpt-google-summary-extension/issues/new/choose
Stack Trace
content-script.js:6 (anonymous function)
Desktop (please complete the following information):
Was able to resolve this by modifying src/options/ProviderSelect.tsx
functionProviderSelect(){
...
if(query.isLoading){return<Spinner/>}// Added thisif(query.error){return<div>Errorloadingproviderconfigurations.</div>}// Don't think you need this but added it to be safeif(!query.data||!query.data.config){return<div>Noproviderconfigurationsfound.</div>}return<ConfigPanelconfig={query.data!.config}models={models}/>}
as well as src/config/index.ts
exportasyncfunctiongetProviderConfigs(): Promise<ProviderConfigs>{
...
// Ensure result[configKey] is not undefinedif(!result[configKey]){result[configKey]={}}result[configKey].apiKey=apiKeyreturn{
provider,configs: {[ProviderType.GPT3]: result[configKey],},}}
Describe the bug
I cloned the latest main branch and built it locally following the instructions. Chrome shows errors when I load the package. The error messages are:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: