@datadog/browser-rum broken with NextJS in versions >= 4.10.1
See original GitHub issueMinimal 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:
- Created a year ago
- Reactions:3
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
That was fast ⚡ thanks! Confirmed that 4.10.3 fixes the problem for me.