This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Anthony Roscoe
Posted Jun 27 - Read on Facebook

Just updated to 1.12 and Classes don't seem to be working anymore. Created a simple example but getting no errors. Open in old Framer Studio and you get a white box, new Framer Studio nothing. New way to write Classes that I missed or bug?

9 Comments

Pete Schaffner

Having the same problem here. Looks like there is an error being thrown, however, in the console:

[Error] TypeError: undefined is not an object (evaluating 'result.error.location.first_line')
uncoffee (framer.generated.js, line 690)
compile (framer.generated.js, line 656)
global code (.temp.html, line 1)"

Pete Schaffner

I noticed that omitting a `constructor` declaration makes the subclass work ... in other words, this works:

class MyLayer extends Layer
new MyLayer

Might be redundant, but here is another offending project: http://share.framerjs.com/lvskowdwz1vy/

Koen Bok

cc Edwin Van Rijkom

Koen Bok

Ok yeah this is a bug with us reading out information about your variable names. We're on it.

Pete Schaffner

Thanks, Koen!

Koen Bok

We just fixed these in the beta. Let us know if you run into other issues and we'll push it to stable.

http://framerjs.com/beta/

JL Flores Mena

This is not new to 1.12, I've been having this issue for weeks. I saw Koen's response and immediately updated Framer Beta. I can confirm that this new build (beta/652a806) works! (For me, the issue appeared whenever I added a 'constructor' declaration).

Koen Bok

Great, I'll push this to stable.

Pete Schaffner

Works like a charm. Thanks for the fast response, Koen!

Read the entire post on Facebook