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.

@datadog/browser-rum broken with NextJS in versions >= 4.10.1

See original GitHub issue

Minimal reproduction: https://stackblitz.com/edit/nextjs-cwgzwx?file=pages/_app.js

On initialization an exception is thrown reporting:

TypeError: Cannot read properties of undefined (reading 'INTAKE_SITE_US5')

See the reproduction above for details.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

3reactions
bcaudancommented, May 18, 2022

Hi @implosivemosaic,

Thanks for raising that!

From first investigations, it seems that it happen only in next.js development mode and related to a dependency loop introduced by browser-sdk@4.10.1 that next.js fails to handle (it is correctly handled by using webpack directly for example).

We’ll do a quick fix to solve this one and find a way to detect this kind of situations earlier. I’ll keep you posted.

2reactions
implosivemosaiccommented, May 18, 2022

That was fast ⚡ thanks! Confirmed that 4.10.3 fixes the problem for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Guide - Next.js
To update to Next.js version 13, run the following command using your preferred package manager ... There were no breaking changes between version...
Read more >
Docker example broken · Issue #39085 · vercel/next.js - GitHub
Verify canary release. I verified that the issue exists in the latest Next. · Provide environment information · Which example does this report ......
Read more >
javascript - Tailwindcss not working with next.js; what is wrong ...
I've used tailwind 1.1.4 and postcss-preset-env and I want to upgrade to tailwind with version 3, and it solved by looking for this....
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