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

How i can Fix this Problems. #142

Open
Boudjaa opened this issue May 5, 2024 · 1 comment
Open

How i can Fix this Problems. #142

Boudjaa opened this issue May 5, 2024 · 1 comment

Comments

@Boudjaa
Copy link

Boudjaa commented May 5, 2024

First one on Terminal:

⨯ components\ui\Modal\index.tsx (53:6) @ document
⨯ ReferenceError: document is not defined
at WEBPACK_DEFAULT_EXPORT (./components/ui/Modal/index.tsx:101:24)
51 |
52 | </>,

53 | document.body,
| ^
54 | )
55 | ) : (
56 | <></>


Second:

Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'username')
Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'avatar_url')


@Boudjaa Boudjaa changed the title How to Fix it . May 5, 2024
@Boudjaa Boudjaa changed the title . How i can Fix this Problems. May 5, 2024
@sidiDev
Copy link
Member

sidiDev commented May 12, 2024

Hey @Boudjaa Have you tried to add "?" like this window?.document?.body

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