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

Check Element propType for non-browser environments #302

Closed
wants to merge 1 commit into from

Conversation

diegoponciano
Copy link

O tipo Element não tá disponível em projetos SSR (tipo o Next.JS), porque o NodeJS não inclui o DOM, o que causa o erro "ReferenceError: Element is not defined".
Uma alternativa é quando o Element for undefined, fazer fallback pro any.

O tipo `Element` não tá disponível em projetos SSR (tipo o Next.JS), porque o NodeJS não inclui o DOM, o que causa o erro "ReferenceError: Element is not defined".
Uma alternativa é quando o `Element` for undefined, fazer fallback pro `any`.
@diegoponciano
Copy link
Author

@thiagozanetti esse issue parece relacionado com o #246. algum motivo pra ele ter sido fechado? se for questão de código ou descrição, posso tentar melhorar

@thiagozanetti thiagozanetti reopened this Jul 19, 2022
@thiagozanetti
Copy link
Owner

@thiagozanetti esse issue parece relacionado com o #246. algum motivo pra ele ter sido fechado? se for questão de código ou descrição, posso tentar melhorar

Devo ter fechado inadvertidamente junto dos PRs abertos pelo dependabot.

@thiagozanetti thiagozanetti deleted the branch thiagozanetti:master February 11, 2023 03:02
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.

2 participants