Skip to content

Conversation

@taufiqelrahman
Copy link

Issue to fix: #636

Description:

  1. When page on load, the vconsole panel can be opened as well as the network panel.
  2. After navigating around in my next.js app, the vconsole panel cannot be opened (after click) and there is error shows up: Uncaught (in promise) TypeError: Cannot convert undefined or null to object

Steps to Reproduce (if applicable):

  1. Go forward and back in next.js app. (pages should perform requests)
  2. click the vconsole floating panel.

Expected Behavior:
The Network panel can be opened and track the network activities.

Actual Behavior:
The vconsole panel and the Network panel cannot track the network activities.

Additional Information:
Error message:

vconsole.min.js:10 Uncaught (in promise) TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at po (vconsole.min.js:10:230313)
    at Array.xo (vconsole.min.js:10:239253)
    at y (vconsole.min.js:10:123857)
    at Array.ue (vconsole.min.js:10:189716)
    at y (vconsole.min.js:10:123857)
    at Cn (vconsole.min.js:10:176259)
    at xt (vconsole.min.js:10:129051)
    at new e (vconsole.min.js:10:177517)
    at se (vconsole.min.js:10:190371)
    at bt (vconsole.min.js:10:127194)
    at Object.p (vconsole.min.js:10:189407)
    at Object.p (vconsole.min.js:10:193586)
    at lt (vconsole.min.js:10:126559)
    at st (vconsole.min.js:10:126239)

Proposed solution
Handle when req.requestHeader is undefined

@tencent-adm
Copy link
Member

tencent-adm commented Oct 10, 2024

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@taufiqelrahman taufiqelrahman force-pushed the vconsole-undefined-error branch from d7ea044 to 61fbc53 Compare October 10, 2024 07:27
@sweetcard
Copy link

It seems not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network not working: "TypeError: Cannot convert undefined or null to object" in next.js 13.4.4 app router

4 participants