primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Core: SSR with NextJS "edge" runtime removes styles

Open zawasp opened this issue 10 months ago • 1 comments

Describe the bug

When using the "edge" runtime on a NextJS page route, console shows this warning and all styles are removed:

image image

Removing the "edge" runtime solves the issue: image

Reproducer

https://github.com/zawasp/primereact-nextedge

PrimeReact version

10.6.3

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

No response

Steps to reproduce the behavior

Just add export const runtime = "edge"; to any NextJS page containing a PrimeReact component.

Expected behavior

Styles should be preserved and no errors shown.

zawasp avatar Apr 22 '24 05:04 zawasp

Same here, need export const runtime = "edge"; to deploy on Cloudflare 😞

jjavimu avatar Sep 30 '24 18:09 jjavimu