Bug: fix BigInt in copyElementPath in react-devtools
See original GitHub issueThis is a continuation of an previous issue to add support for the BigInt data type in React DevTools.
Original PR https://github.com/facebook/react/pull/17233 (merged)
This happens when you try to copy a BigInt value to clipboard via React DevTools.
Would @nutboltu mind taking a look?
backend.js:1 Uncaught TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at c (backend.js:1)
at Object.copyElementPath (backend.js:6)
at t.<anonymous> (backend.js:6)
at t.r.emit (backend.js:6)
at backend.js:32
at t (backend.js:8)
c @ backend.js:1
copyElementPath @ backend.js:6
(anonymous) @ backend.js:6
r.emit @ backend.js:6
(anonymous) @ backend.js:32
t @ backend.js:8
postMessage (async)
(anonymous) @ contentScript.js:1
<./app-insights/app-insights>:50 Uncaught TypeError: Cannot read property 'message' of null
at trackError (<./app-insights/app-insights>:50)
at eval (<./app-insights/app-insights>:22)
trackError @ <./app-insights/app-insights>:50
eval @ <./app-insights/app-insights>:22
setTimeout (async)
eval @ <./app-insights/app-insights>:21
error (async)
initAppInsights @ <./app-insights/app-insights>:17
main @ VM70658 client>:101
main @ ./../../../node_modules/@tessin/tcm/lib/dev/boot-loader:31
async function (async)
main @ ./../../../node_modules/@tessin/tcm/lib/dev/boot-loader:27
(anonymous) @ 219:3435
backend.js:1 Uncaught TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at c (backend.js:1)
at Object.copyElementPath (backend.js:6)
at t.<anonymous> (backend.js:6)
at t.r.emit (backend.js:6)
at backend.js:32
at t (backend.js:8)
c @ backend.js:1
copyElementPath @ backend.js:6
(anonymous) @ backend.js:6
r.emit @ backend.js:6
(anonymous) @ backend.js:32
t @ backend.js:8
postMessage (async)
(anonymous) @ contentScript.js:1
<./app-insights/app-insights>:50 Uncaught TypeError: Cannot read property 'message' of null
at trackError (<./app-insights/app-insights>:50)
at eval (<./app-insights/app-insights>:22)
trackError @ <./app-insights/app-insights>:50
eval @ <./app-insights/app-insights>:22
setTimeout (async)
eval @ <./app-insights/app-insights>:21
error (async)
initAppInsights @ <./app-insights/app-insights>:17
main @ VM70658 client>:101
main @ ./../../../node_modules/@tessin/tcm/lib/dev/boot-loader:31
async function (async)
main @ ./../../../node_modules/@tessin/tcm/lib/dev/boot-loader:27
(anonymous) @ 219:3435
backend.js:1 Uncaught TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at c (backend.js:1)
at Object.copyElementPath (backend.js:6)
at t.<anonymous> (backend.js:6)
at t.r.emit (backend.js:6)
at backend.js:32
at t (backend.js:8)
c @ backend.js:1
copyElementPath @ backend.js:6
(anonymous) @ backend.js:6
r.emit @ backend.js:6
(anonymous) @ backend.js:32
t @ backend.js:8
postMessage (async)
(anonymous) @ contentScript.js:1
<./app-insights/app-insights>:50 Uncaught TypeError: Cannot read property 'message' of null
at trackError (<./app-insights/app-insights>:50)
at eval (<./app-insights/app-insights>:22)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
[DevTools Bug] Crash when inspecting component using a ...
open the Components -Tab in React Dev Tools; click on the Child component. you should see following error: image ...
Read more >How To Debug React Components Using React Developer ...
Open the console and you'll find the name of the App component in the Components tab. There's not a lot of information yet,...
Read more >What's New In DevTools (Chrome 102)
A new Copy button is added to the Changes tab as well to help you keep track and copy your CSS changes with...
Read more >A guide to features and updates in React DevTools
React DevTools helps you debug apps in environments such as mobile browsers, Safari, and iframes. Discover 5 features you didn't know ...
Read more >Find original source file path from inspect element in dev tools
Inspect element and view source are nice but I can't find the path to the source file where the code was generated from....
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 Free
Top 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
@nutboltu: This issue is all yours! 😄
I’ve added the “good first issue (taken)” label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim.
Cheers!
@leidegre I will take a look.