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 'v' of undefined

See original GitHub issue

alt

I have another bodymoving animation on another place which works just fine and i can’t figure out why this one won’t work.

The code for both animations looks almost identical

Animation that works

const animation = bodymovin.loadAnimation({
  container: document.getElementById("loader"),
  renderer: "svg",
  loop: true,
  autoplay: true,
  path: "themes/iplay/assets/data/loader/data.json"
});

Animation that don’t work

const animation = bodymovin.loadAnimation({
  container: document.getElementById("timeline-svg"),
  renderer: "html",
  loop: true,
  autoplay: true, 
  path: "themes/iplay/assets/data/timeline/data.json",
});

The problem seems to be on line 11503

this.mat.rotateX(-mTransf.rx.v).rotateY(-mTransf.ry.v).rotateZ(mTransf.rz.v);

From what i could debug myself (only using console.log(), your code base is to big and complicated for me to debug myself) I couldn’t find a definition for this.hierarchy[i].finalTransform.mProp.rx, all the others .p .s .v are defined when you log the object but .rx is nowhere to be found. alt

Does anybody have any idea what’s going on?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bodymovincommented, Apr 10, 2018

Hi, the camera is parented to a 2d null Layer The player expects that 3d parenting is also a 3d layer. I’ll see if I can fix this on my side, but if you change your Null Layer to 3d, it should work fine.

0reactions
bodymovincommented, Aug 22, 2019

@chintu3535 Hi, I ofund the issue, it will be fixed on the next deploy. It is related to having separate position properties on the camera.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an...
Read more >
Uncaught TypeError : Cannot read properties of undefined
Causes for TypeError: Cannot Read Property of Undefined. The error clearly says that it is Undefined, which means the variable might be declared ......
Read more >
Uncaught TypeError: Cannot read property 'value' of undefined
I have some JavaScript code that gives this error. Uncaught TypeError: Cannot read property 'value' of undefined.
Read more >
How to Avoid the Infamous "Cannot read properties of ... - Bitovi
That error message is telling you the function is returning undefined implicitly, but its return type does not include undefined in it. Awesome!...
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