You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was another NullReferenceException in this file(packages/next/client/head-manager.ts) that has been resolved before. The related issue and the PR are below.
I did not understand the point of using exclamation marks for the possible Null Reference Exceptions instead of question marks as a shorthand?
I will refactor the file again that the file name has been provided in the issue title, and will open another PR.
Or, maybe the Next.js team can be considered to refactor the related file from scratch as well.
Thanks in advance.
Expected Behavior
Should work like a charm.
To Reproduce
Using next/head within any of the components and deploying the app with next export.
importHeadfrom'next/head';
The text was updated successfully, but these errors were encountered:
* fix(#31060): NullReferenceException
Related Issue: #31060
* Type 'undefined' is not assignable to type 'Element | null'
Co-authored-by: Steven <steven@ceriously.com>
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 27, 2022
natew
pushed a commit
to natew/next.js
that referenced
this issue
Feb 16, 2022
* fix(vercel#31060): NullReferenceException
Related Issue: vercel#31060
* Type 'undefined' is not assignable to type 'Element | null'
Co-authored-by: Steven <steven@ceriously.com>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
12.0.3
What version of Node.js are you using?
16.13.0
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
next export
Describe the Bug
There was another NullReferenceException in this file(
packages/next/client/head-manager.ts
) that has been resolved before. The related issue and the PR are below.Issue: #30604
PR: #30919
I did not understand the point of using exclamation marks for the possible Null Reference Exceptions instead of question marks as a shorthand?
I will refactor the file again that the file name has been provided in the issue title, and will open another PR.
Or, maybe the Next.js team can be considered to refactor the related file from scratch as well.
Thanks in advance.
Expected Behavior
Should work like a charm.
To Reproduce
Using
next/head
within any of the components and deploying the app withnext export
.The text was updated successfully, but these errors were encountered: