Skip to content

[BUG] - Encountered a script tag while rendering React component with next.js 16.2.1 #6348

Description

@uigywnkiub

HeroUI Version

2.8.10

Describe the bug

Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).

Your Example Website or App

https://github.com/uigywnkiub/explend-app/blob/main/app/providers.tsx

Steps to Reproduce the Bug or Issue

Just upgrade next.js to 16.2.1 and run next dev

Expected behavior

Expected no errors about it. Like on next.js 16.1.6

Screenshots or Videos

Image

Operating System Version

macOS

Browser

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions