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.

Uncaught TypeError: Cannot assign to read only property 'className' of object '#<SVGTextElement>'

See original GitHub issue

Tell us about your environment OS X 10.14.2 (18C54) (Mojave)

  • Browser and Browser Version: Chrome Version 71.0.3578.98

  • After Effects Version: 16.0.1 (Build 48)

What did you do? Please explain the steps you took before you encountered the problem. Exported animation without glyphs.

What did you expect to happen? Chrome to render text using external font.

What actually happened? Please include as much relevant detail as possible. Nothing displayed in Chrome, console gives the following error:

Uncaught TypeError: Cannot assign to read only property 'className' of object '#<SVGTextElement>'
    at e.addFonts (lottie.js:1)
    at SVGRenderer.BaseRenderer.setupGlobalData (lottie.js:1)
    at SVGRenderer.configAnimation (lottie.js:1)
    at AnimationItem.configAnimation (lottie.js:1)
    at XMLHttpRequest.s.onreadystatechange (lottie.js:1)

Please provide a download link to the After Effects file that demonstrates the problem. test.aep.zip

I’m trying to export without glyphs, using an external font but keep getting the error above in Chrome dev console. These are my font export settings:

screenshot 2019-02-01 at 10 39 35

Am I doing something wrong? Is this something I can fix in my js?

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bodymovincommented, Feb 2, 2019

Not sure why in your context there is an svg attribute classname that is readonly. I’ve changed it to use setAttribute instead. It’ll be available for the next deploy.

0reactions
laygircommented, Feb 11, 2019

Hi peoples, I’m having the same issue here. Any estimation for the next deploy?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot assign to read only property 'transform' of ...
But it is fine to modify it in 'render' method. I searched the error message, many people get this error message by modifying...
Read more >
Cannot assign to read only property 'name' of object ... - Reddit
How can i fix this: TypeError: Cannot assign to read only property 'name' of object '#<Object>'. I'm trying to change the name property...
Read more >
Uncaught TypeError: Cannot assign to read only property
JavaScript : Uncaught TypeError : Cannot assign to read only property [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] ...
Read more >
Making a read-only attribute - Python Morsels
We can't assign to area because properties are read-only by default. We could try to make our length attribute into a property, by...
Read more >
The Basics - Manual - PHP
The class name can be any valid label, provided it is not a PHP reserved word. ... Fatal error: Readonly class Foo cannot...
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