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.

"Cannot read property 'custom' of undefined" in v6.10.x

See original GitHub issue

I’m getting a JS exception after upgrading to the latest version:

Uncaught TypeError: Cannot read property 'custom' of undefined

yarn.lock entry for my dependency:

qs@^6.9.4:
  version "6.10.1"
  resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.1.tgz#4931482fa8d647a5aab799c5271d2133b981fb6a"
  integrity sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg==
  dependencies:
    side-channel "^1.0.4"

Another concern is that the bundle size increased by 30kb (because of qs’s new dependency side-channel probably) with this upgrade. This one is not a blocker, but definitely a concern.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
littlecxmcommented, May 24, 2022

has any update? it still happened when I use yarn2 & vite to compile it

0reactions
ljharbcommented, Mar 29, 2021

If rollup is unable to bundle this package, please file an issue on rollup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - React-router v6: Cannot read properties of undefined ...
I'm using react-router v6 and I'm trying to use a custom history to be able to navigate in redux actions (outside of a...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
Getting error "Cannot read property "length" from - ServiceNow
Solved: Hi all, I am trying for SNow - JIRA integration using JIRA spoke. Getting error " Cannot read property "length" from undefined....
Read more >
typeerror_ cannot read property of undefined react
Nov 27, 2022 · 1 Answer Sorted by: 1 It's saying that document. ... Cannot read property 'length' of undefined · TypeError 1...
Read more >
cannot read properties of undefined react
JavaScript, React The issue Cannot read the property of undefined is quite common in JavaScript. ... React apps break ljarzabek February 10, 2022,...
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