Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nextjs-legacy example does not work #293

Closed
eddie0329 opened this issue Sep 9, 2024 · 4 comments
Closed

nextjs-legacy example does not work #293

eddie0329 opened this issue Sep 9, 2024 · 4 comments

Comments

@eddie0329
Copy link
Contributor

eddie0329 commented Sep 9, 2024

Description

Run yarn build shows an error as below:

Restarted static page generation for /hello/world because it took more than 60 seconds

As well as yarn build, yarn dev shows infinite loading.

Steps to Reproduce

# this pacakge was missing
yarn add react-dom
yarn dev

Expected Behavior

Build project without an timeout error.

Relevant Logs / Console output

Your Environment

  • ex: Browser name and version:
  • ex: Operating System and version:

ex: mac os Sonoma 14.2.1

Additional context

@eddie0329 eddie0329 added the bug Something isn't working label Sep 9, 2024
@workato-integration
Copy link

@jsumners-nr
Copy link
Contributor

How is this a bug with the example? The example is effectively:

  1. cp .sample.env .env
  2. # edit .env and add your key
  3. npm run build
  4. npm start

@eddie0329
Copy link
Contributor Author

Thank you for reply.

I followed what you've said but same errors remain.
I am assuming that following codes are suspicious.

if (newrelic.agent.collector.isConnected() === false) {
      await new Promise((resolve) => {
        newrelic.agent.on("connected", () => {
             // ⭐️ no logs are printed here
             console.log("connected")
             resolve("connected")
         })
      })
}

Are there any suggestions for this error?

@jsumners-nr jsumners-nr removed the bug Something isn't working label Sep 9, 2024
@jsumners-nr
Copy link
Contributor

Please use npm for installing the dependencies.

@jsumners-nr jsumners-nr closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done: Issues recently completed
Development

No branches or pull requests

2 participants