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

Uncaught TypeError with the message “Cannot convert undefined or null to object” #8

Open
scottgx opened this issue Jul 7, 2023 · 0 comments

Comments

@scottgx
Copy link

scottgx commented Jul 7, 2023

Encountering a runtime error, message indicates that there is an uncaught TypeError with the message “Cannot convert undefined or null to object”. The error seems to be occurring in the assets/js/index.90f3a6ce.js file on line 98.

Line 98:
}catch(Qt){console.log(Error occurred while reading page ${tr}: ${Qt});continue}ht(ar)}catch(Ut){Ct(Error occurred while reading PDF file: ${Ut})}else Ct("No result found")},It.onerror=()=>{Ct(Error occurred while reading file: ${It.error})},It.readAsArrayBuffer(Ht)}),Et=(Ht,ht)=>{var Ft,Ut;const Ct=(Ft=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"))==null?void 0:Ft.set,It=Object.getPrototypeOf(Ht),At=(Ut=Object.getOwnPropertyDescriptor(It,"value"))==null?void 0:Ut.set;Ct&&Ct!==At?At==null||At.call(Ht,ht):Ct==null||Ct.call(Ht,ht),Ht.dispatchEvent(new Event("input",{bubbles:!0}))},Ot=async Ht=>{const ht=document.getElementById("prompt-textarea");Et(ht,Ht);const Ct=new KeyboardEvent("keydown",{key:"Enter",code:"Enter",which:13,keyCode:13,bubbles:!0});await new Promise(It=>setTimeout(It,300)),ht.dispatchEvent(Ct)};async function $t(Ht,ht,Ct,It){const At=${ht===1?ut:""}

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