question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

event - build page: /next/dist/pages/_error in next start output

See original GitHub issue

What version of Next.js are you using?

10.2.2

What version of Node.js are you using?

14.16.1

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying your application?

next start

Describe the Bug

Not really a “bug” per se, but i am getting the following message whenever running next start on my project: event - build page: /next/dist/pages/_error I do not know what this means and I am tired of seeing this in my output every time I start the development server.

Expected Behavior

Expected beahviour for me would be to not be seeing this message everytime i run yarn start

To Reproduce

Very Basic _App.js which is generating this issue:

import '../styles/app.css'
import Image from 'next/image';

const App = () => {
  return(
    <div className="home">
      <Image
        src='/logo.PNG' 
        alt="image" 
        height={306/1.5} 
        width={356/1.5} 
      />
    </div>
  )
};
  
export default App;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ericveracommented, Aug 11, 2021

I just received this while trying to figure out what is going on. The MaxListenersExceededWarning part is new perhaps to someone that knows the code base better that gives a hint.

wait  - compiling...
event - compiled successfully
wait  - compiling...
event - compiled successfully
wait  - compiling...
event - compiled successfully
event - build page: /order
wait  - compiling...
event - compiled successfully
event - build page: /next/dist/pages/_error
wait  - compiling...
event - compiled successfully
event - build page: /next/dist/pages/_error
wait  - compiling...
event - compiled successfully
event - build page: /next/dist/pages/_error
wait  - compiling...
(node:50727) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 /next/dist/pages/_error listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
event - compiled successfully
wait  - compiling...
event - compiled successfully
0reactions
balazsorban44commented, Jan 27, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next.js Removing Error Page After Compiling #9876 - GitHub
Bug report Describe the bug Next.js is removing the default error page. [ event ] build page: /next/dist/pages/_error [ wait ] compiling ....
Read more >
Module parse fail in next js zero-config - Stack Overflow
Solved. It was an environment issue in my user folder. It was a global babel settings which interfered only with the nextjs package...
Read more >
Next.js - Pages - Tutorialspoint
In Next.js, a page is a React Component and are exported from pages directory. Each page is associated with a route based on...
Read more >
Deployment - Next.js
Learn how to deploy your Next.js app to production, either managed or ... Output for the build cache and cached images, responses, and...
Read more >
Newbie getting build errors with Next.JS : r/reactjs - Reddit
Hi, I'm getting a build error, website looks fine with npm run dev. Not sure what info I should attach, if something extra...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found