Suppress Next 15 Errors
Answered
American black bear posted this in #help-forum
Original message was deleted.
Answered by Spectacled Caiman
I'm tempted to say no... maybe you can ask for it in an Issue but not sure if it would be considered or not.
The line that creates the error overlay is here: [next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx#L78) and to have them not show you'd need the
When you click the 'x' inside the indicator, it sets the displayState to hidden [here](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/internal/container/Errors.tsx#L256), but I don't see any configuration or env vars that might change the default initial state.
The line that creates the error overlay is here: [next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx#L78) and to have them not show you'd need the
initialDisplayState to be 'hidden', I think.When you click the 'x' inside the indicator, it sets the displayState to hidden [here](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/internal/container/Errors.tsx#L256), but I don't see any configuration or env vars that might change the default initial state.
8 Replies
<div suppressHydrationWarning={true}>
{/* content that might differ between server and client */}
</div>it only suppresses hygration warnings. not any other warnings
Spectacled Caiman
I'm tempted to say no... maybe you can ask for it in an Issue but not sure if it would be considered or not.
The line that creates the error overlay is here: [next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx#L78) and to have them not show you'd need the
When you click the 'x' inside the indicator, it sets the displayState to hidden [here](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/internal/container/Errors.tsx#L256), but I don't see any configuration or env vars that might change the default initial state.
The line that creates the error overlay is here: [next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/app/ReactDevOverlay.tsx#L78) and to have them not show you'd need the
initialDisplayState to be 'hidden', I think.When you click the 'x' inside the indicator, it sets the displayState to hidden [here](https://github.com/vercel/next.js/blob/250370a0f897ead7fc66a460490e5897ccd18ab0/packages/next/src/client/components/react-dev-overlay/internal/container/Errors.tsx#L256), but I don't see any configuration or env vars that might change the default initial state.
Answer
Original message was deleted
There is no way to do that.
There are some changes in next 15, and you need to modify the code for it.
I think you need to await headers
There are some changes in next 15, and you need to modify the code for it.
I think you need to await headers
Yup, I guess you've to do that only.
incrementally adopt next 15
Mark solution please
Mark the message which resolved your issue