How to handle error occurred during building project? #68779
-
|
Hello, seniors.
I thought this is from app/page.tsx, add page.tsx. I've read some articles dealing with such error, but I can't find solutions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
To fix this issues, you need to ensure that the code accessing these browser-specific objects only runs in the client-side environment. Hi, please let it try again with these codes instead of above codes. |
Beta Was this translation helpful? Give feedback.
-
|
The root issue in the logs is here: And the way to fix it, as per ldrs documentation: https://github.com/GriffinJohnston/ldrs/blob/HEAD/framework-guides.md#nextjs I'd recommend starting with:
|
Beta Was this translation helpful? Give feedback.
The root issue in the logs is here:
And the way to fix it, as per ldrs documentation: https://github.com/GriffinJohnston/ldrs/blob/HEAD/framework-guides.md#nextjs
I'd recommend starting with: