Next.js Discord

Discord Forum

ReferenceError: HTMLElement is not defined for all my app's pages. PLEASE assist.

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I am getting this issue upon running npm run build


Export encountered errors on following paths:
/_not-found
/auth/getstarted/page: /auth/getstarted
/auth/login/page: /auth/login
/auth/signup/page: /auth/signup
/home/page: /home
/page: /
/settings/page: /settings


These are all of the pages of my app. I have no clue where to even begin debugging this and have blindly tried many of the solutions online.

For instance _not-found is a page that I didn't even make, assuming its an internal Next.JS dev'd page, and im still getting this issue for that page. No clue where to even start with this.

I can DM code if needed.

5 Replies

Sun bearOP
^^^
Asian black bear
To ensure you get the best possible assistance, could you please change your thread title to be more descriptive? Specific titles attract the attention of users who can help and make it easier for others to find similar solutions in the future.
Sun bearOP
no. npm run dev works