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

Fix: Uncaught TypeError: Cannot read properties of null (reading 'style') #34

Closed
wants to merge 19 commits into from
Closed

Conversation

rmcc3
Copy link

@rmcc3 rmcc3 commented Jan 28, 2023

The error is caused by changes in ChatGPT UI with the spacer. This request fixes that.

This change fixes the broken spacer error that is caused by ChatGPT UI changes. The patch also includes the fix made by [@nethunter] (https://github.com/nethunter) in #28.
@DhruvDh
Copy link

DhruvDh commented Feb 10, 2023

This fixes generation of PDFs and PNGs for me, but Share Link is still broken -

content_script.js:255 

       Uncaught (in promise) TypeError: Cannot read properties of null (reading 'sheet')
          at getData (content_script.js:255:72)
          at sendRequest (content_script.js:231:16)
          at exportHtml.onclick (content_script.js:110:5)
          getData @ content_script.js:255
          sendRequest @ content_script.js:231
          exportHtml.onclick @ content_script.js:110

@rmcc3
Copy link
Author

rmcc3 commented Feb 11, 2023

This fixes generation of PDFs and PNGs for me, but Share Link is still broken -

content_script.js:255 

       Uncaught (in promise) TypeError: Cannot read properties of null (reading 'sheet')
          at getData (content_script.js:255:72)
          at sendRequest (content_script.js:231:16)
          at exportHtml.onclick (content_script.js:110:5)
          getData @ content_script.js:255
          sendRequest @ content_script.js:231
          exportHtml.onclick @ content_script.js:110

Fixed. Seems they updated the UI framework.

@saurabh20
Copy link

Here are a couple of errors in the chrome extension
chatgpt-exten-error
chatgpt-ext-errors
Please fix it as its not working on Chrome [macOS]

@rmcc3
Copy link
Author

rmcc3 commented Feb 14, 2023

Here are a couple of errors in the chrome extension chatgpt-exten-error chatgpt-ext-errors Please fix it as its not working on Chrome [macOS]

It is working. Are you sure you downloaded this pull and updated the extension? Try removing the current extension and downloading it directly from my repo.

rmcc3/ChatGPT-pdf

@tovstyi
Copy link

tovstyi commented Feb 22, 2023

image

@abdularif0705
Copy link

Works for Chrome but not Firefox. But thank you for fixing it for Chrome!

@gzur
Copy link

gzur commented Mar 1, 2023

Fixes #45

@smithnigelw
Copy link

smithnigelw commented Mar 3, 2023

I've tried this extension (v1.3.6) today on both Microsoft Edge and Google Chrome, both v110, but its not adding in the extra buttons, so strangely it does not appear to be activating. On the Extensions page, under 'Inspect views' it is saying 'No active views'. Please can you offer any advice on how to debug this situation.
Update#1 OK, I've found the js files under 'Sources > Content scripts'. I've set a break point in 'shouldRemoveButtons()' and 'inConversation' is returning true. And so 'shouldAddButtons()' is returning false. Strange, as the output from ChatGPT has completed and displayed the 'Regenerate response' button.

@rmcc3 rmcc3 closed this by deleting the head repository Dec 12, 2023
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

Successfully merging this pull request may close these issues.

None yet

8 participants