diff --git a/errors/no-script-in-document-page.md b/errors/no-script-in-document-page.md index 201d01d32e24a..2986bfeebb09c 100644 --- a/errors/no-script-in-document-page.md +++ b/errors/no-script-in-document-page.md @@ -1,8 +1,10 @@ # Script component inside \_document.js +> ⚠️ This error is not relevant in versions 12.1.6 or later. Please refer to the updated [error message](https://nextjs.org/docs/messages/no-before-interactive-script-outside-document). + #### Why This Error Occurred -You can't use the `next/script` component inside the `_document.js` page. That's because the `_document.js` page only runs on the server and `next/script` has client-side functionality to ensure loading order. +You can't use the `next/script` component inside the `_document.js` page in versions prior to v12.1.6. That's because the `_document.js` page only runs on the server and `next/script` has client-side functionality to ensure loading order. #### Possible Ways to Fix It