#Hey guys does anyone knows why this error happening
26 messages · Page 1 of 1 (latest)
document.querySelector(".ql-editor") might be returning null. also i'm not sure if you need to use document.querySelector at all for the things you're trying to do
i added this and the warning disappeared
quix-fix
oh but still an error
yeah ideally you should handle the type errors rather than ignoring them with a comment
the problem is i can't identify the error it happens suddenly
remove the comments first. also maybe you should install the eslint plugin in your vscode so you can see the errors
do you see red scribbles in your editor i'm not sure if vscode supports ts out of the box
yes
then i'm not sure why the errors arent showing up in your vscode i'm not really familiar with it
remove .children
or at least check if the queryselector is returning null or not
i thought I'm using react absolutely wrong with this code 
i mean if you're using react then i don't think you'll ever need document.querySelector
if you need a reference to a dom element you could use useRef
but im getting my text from database which means i won't be able to refer
i think it would be possible only if i had an element
if you're getting data from the database you can fetch it, change the state with useState and render the text based on that state