Skip to content

Conversation

martinfrancois
Copy link
Contributor

Without the | null, the following error appears during compilation:

TS2322: Type RefObject<HTMLDivElement | null> is not assignable to type RefObject<HTMLDivElement>
Type HTMLDivElement | null is not assignable to type HTMLDivElement
Type null is not assignable to type HTMLDivElement

Without the `| null`, the following error appears during compilation:
```
TS2322: Type RefObject<HTMLDivElement | null> is not assignable to type RefObject<HTMLDivElement>
Type HTMLDivElement | null is not assignable to type HTMLDivElement
Type null is not assignable to type HTMLDivElement
```
@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Sep 21, 2025
@ijjk
Copy link
Member

ijjk commented Sep 21, 2025

Allow CI Workflow Run

  • approve CI run for commit: 5ae8530

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@ijjk
Copy link
Member

ijjk commented Sep 21, 2025

Allow CI Workflow Run

  • approve CI run for commit: 5ae8530

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@icyJoseph icyJoseph merged commit af9298c into vercel:canary Sep 22, 2025
65 checks passed
icyJoseph added a commit that referenced this pull request Sep 29, 2025
Without the `| null`, the following error appears during compilation:
```
TS2322: Type RefObject<HTMLDivElement | null> is not assignable to type RefObject<HTMLDivElement>
Type HTMLDivElement | null is not assignable to type HTMLDivElement
Type null is not assignable to type HTMLDivElement
```

Co-authored-by: Joseph <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants