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

What is Framer? Join the Community
Return to index
Richard Kho
Posted Dec 31 - Read on Facebook

Hi everyone,

I'm trying to create a function that restarts my Framer demo when clicked. Right now every screen is its own separate function, wrapped in its own module. The problem is, for some reason, re-visiting any of these functions (after the demo has naturally gone through its steps) causes the Javascript interpreter to throw an error that it's not a function and cannot be invoked.

When I go to check on the `typeof (function)`, during this step I'm told it's an empty object. Running this exact same check at an earlier point in my prototype causes it to log as a function rather than an empty object.

What am I doing wrong here?