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

Error handling response: TypeError: Cannot read properties of undefined (reading 'textContent') #208

Closed
tasselx opened this issue Aug 23, 2023 · 4 comments

Comments

@tasselx
Copy link

tasselx commented Aug 23, 2023

Describe the bug
Unable to display json properly and reporting errors in the console

409952260

What browser are you using?*
Microsoft Edge for Mac
version: 116.0.1938.54 (正式版本) (arm64)
The plugin version number used is 2.4.3

Where did you install JSONView from?
edge's plugin store installed

@bhollis
Copy link
Owner

bhollis commented Aug 23, 2023

This would be the line: https://github.com/bhollis/jsonview/blob/master/src/content.ts#L28

However it works for me on Chrome and Edge. So I suspect you have another extension that's changing the content and making this fail.

@bhollis
Copy link
Owner

bhollis commented Aug 23, 2023

For reference, with no extensions enabled at all, this is what JSON looks like:

image

So the fact that you have line numbers and such suggests you have another extension operating on the content that is incompatible with JSONView.

@tasselx
Copy link
Author

tasselx commented Aug 24, 2023

This would be the line: https://github.com/bhollis/jsonview/blob/master/src/content.ts#L28

However it works for me on Chrome and Edge. So I suspect you have another extension that's changing the content and making this fail.

I tried disabling all browser extensions, as well as the grease monkey script, leaving only the jsonview, and still no way to display the json properly.At the time I had this problem, it was my edge browser upgraded to the latest version, not ruling out browser compatibility issues? @bhollis

image

@tasselx
Copy link
Author

tasselx commented Oct 8, 2023

The new version of edge comes with JSON formatting and disables other JSON extensions. You need to find JSON Viewer in edge://flags/, set it to disable

@tasselx tasselx closed this as completed Oct 8, 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

No branches or pull requests

2 participants