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
Using the new next/script introduced in next 11 instead of <script /> tag causing Uncaught (in promise) TypeError: Cannot read property 'tagName' of null
Expected Behavior
Should load the script successfully without runtime error
To Reproduce
importHeadfrom"next/head";importScriptfrom'next/script';constMeta=({
title,
keywords,
description
})=>{return(<Head><Scriptsrc="/example.min.js"strategy="beforeInteractive"/> // <-- causing Uncaught (in promise) TypeError: Cannot read property 'tagName' of null</Head>)}exportdefaultMeta;
The text was updated successfully, but these errors were encountered:
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 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
11
What version of Node.js are you using?
14.17.1
What browser are you using?
Chrome Version 91.0.4472.77
What operating system are you using?
macOS Version 11.3
How are you deploying your application?
next start
Describe the Bug
Using the new next/script introduced in next 11 instead of <script /> tag causing Uncaught (in promise) TypeError: Cannot read property 'tagName' of null
Expected Behavior
Should load the script successfully without runtime error
To Reproduce
The text was updated successfully, but these errors were encountered: