Cannot read property 'v' of undefined
See original GitHub issue
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.

Does anybody have any idea what’s going on?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top 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 >
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

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.
@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.